octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #63290] gsvd.cc format '%d' problem for 64-bit


From: Dmitri A. Sergatskov
Subject: [Octave-bug-tracker] [bug #63290] gsvd.cc format '%d' problem for 64-bit int compile
Date: Sat, 29 Oct 2022 21:09:52 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?63290>

                 Summary: gsvd.cc format '%d' problem for 64-bit int compile
                 Project: GNU Octave
               Submitter: dasergatskov
               Submitted: Sun 30 Oct 2022 01:09:50 AM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Missed Error or Warning
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: dev
         Discussion Lock: Any
        Operating System: GNU/Linux


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Sun 30 Oct 2022 01:09:50 AM UTC By: Dmitri A. Sergatskov <dasergatskov>
Compiling with --enable-64 I see the following warnings:


../liboctave/numeric/gsvd.cc: In constructor
'octave::math::gsvd<T>::gsvd(const T&, const T&,
octave::math::gsvd<T>::Type)':
../liboctave/numeric/gsvd.cc:573:33: warning: format '%d' expects argument of
type 'int', but argument 2 has type 'F77_INT' {aka 'long int'} [-Wformat=]
  573 |           ("*ggsvd.f: argument %d illegal", -info);
      |                                ~^           ~~~~~
      |                                 |           |
      |                                 int         F77_INT {aka long int}
      |                                %ld
../liboctave/numeric/gsvd.cc: In instantiation of
'octave::math::gsvd<T>::gsvd(const T&, const T&, octave::math::gsvd<T>::Type)
[with T = Matrix]':
../liboctave/numeric/gsvd.cc:691:20:   required from here
../liboctave/numeric/gsvd.cc:573:33: warning: format '%d' expects argument of
type 'int', but argument 2 has type 'F77_INT' {aka 'long int'} [-Wformat=]
  573 |           ("*ggsvd.f: argument %d illegal", -info);
      |                                ~^
      |                                 |
      |                                 int
      |                                %ld
../liboctave/numeric/gsvd.cc: In instantiation of
'octave::math::gsvd<T>::gsvd(const T&, const T&, octave::math::gsvd<T>::Type)
[with T = FloatMatrix]':
../liboctave/numeric/gsvd.cc:692:20:   required from here
../liboctave/numeric/gsvd.cc:573:33: warning: format '%d' expects argument of
type 'int', but argument 2 has type 'F77_INT' {aka 'long int'} [-Wformat=]
  573 |           ("*ggsvd.f: argument %d illegal", -info);
      |                                ~^
      |                                 |
      |                                 int
      |                                %ld
../liboctave/numeric/gsvd.cc: In instantiation of
'octave::math::gsvd<T>::gsvd(const T&, const T&, octave::math::gsvd<T>::Type)
[with T = ComplexMatrix]':
../liboctave/numeric/gsvd.cc:693:20:   required from here
../liboctave/numeric/gsvd.cc:573:33: warning: format '%d' expects argument of
type 'int', but argument 2 has type 'F77_INT' {aka 'long int'} [-Wformat=]
  573 |           ("*ggsvd.f: argument %d illegal", -info);
      |                                ~^
      |                                 |
      |                                 int
      |                                %ld
../liboctave/numeric/gsvd.cc: In instantiation of
'octave::math::gsvd<T>::gsvd(const T&, const T&, octave::math::gsvd<T>::Type)
[with T = FloatComplexMatrix]':
../liboctave/numeric/gsvd.cc:694:20:   required from here
../liboctave/numeric/gsvd.cc:573:33: warning: format '%d' expects argument of
type 'int', but argument 2 has type 'F77_INT' {aka 'long int'} [-Wformat=]
  573 |           ("*ggsvd.f: argument %d illegal", -info);
      |                                ~^
      |                                 |
      |                                 int
      |                                %ld

gcc version 11.3.1 20220421 (Red Hat 11.3.1-3) (GCC) 
hg id
5cc53fd090c3 tip @

Dmitri.
-- 









    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63290>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]