bugGNU Octave - Bugs: bug #48139, New warnings about deprecated...

 
 

bug #48139: New warnings about deprecated functions when building liboctave

Submitted by:  Rik <rik5>
Submitted on:  Mon 06 Jun 2016 01:00:38 AM UTC  
 
Category:  Configuration and Build System Severity:  2 - Minor
Priority:  5 - Normal Item Group:  Other
Status:  Fixed Assigned to:  John W. Eaton <jwe>
Originator Name:  Open/Closed:  Closed
Release:  dev Operating System:  Any

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 15 Jul 2016 04:18:24 PM UTC, comment #4: 

Verified, Octave builds without warnings about xmin/xmax now.  Thanks jwe.  Closing report.

Rik <rik5>
Project Administrator
Fri 15 Jul 2016 03:48:17 PM UTC, comment #3: 

I checked in the following changeset for the xmin/xmax problem:

http://hg.savannah.gnu.org/hgweb/octave/rev/9b832e9caae6

It looks like I get a clean build with gcc 5.x now.

John W. Eaton <jwe>
Project AdministratorIn charge of this item.
Tue 14 Jun 2016 07:47:20 PM UTC, comment #2: 

I think I fixed the most recent warnings for the wrapper functions:

http://hg.savannah.gnu.org/hgweb/octave/rev/a46c49f0d52e
http://hg.savannah.gnu.org/hgweb/octave/rev/a19c4ab8e25b

The xmin/xmax thing is a little harder because of some template issues but I'll try to look at that soon.

John W. Eaton <jwe>
Project AdministratorIn charge of this item.
Tue 14 Jun 2016 04:25:43 PM UTC, comment #1: 

A few new warnings have popped up as of 6/14/16

liboctave/wrappers/nproc-wrapper.c:56:10: warning: 'query' may be used uninitialized in this function [-Wmaybe-uninitialized]
liboctave/wrappers/set-program-name-wrapper.c:34:1: warning: no previous prototype for 'octave_set_program_name_wrapper' [-Wmissing-prototypes]
liboctave/wrappers/set-program-name-wrapper.c:39:10: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

Rik <rik5>
Project Administrator
Mon 06 Jun 2016 01:00:38 AM UTC, original submission:  

A new bunch of warnings have popped up about deprecated functions when building liboctave.  They are all associated with the change to a new octave namespace and it looks like it will be easy to fix by replacing the old name with the new fully qualified name of the function in the new namespace.

The warnings are:

liboctave/array/MArray.cc:114:3: warning: 'Complex xmin(const Complex&, const Complex&)' is deprecated: use 'octave::math::min' instead [-Wdeprecated-declarations]
liboctave/array/MArray.cc:133:3: warning: 'Complex xmax(const Complex&, const Complex&)' is deprecated: use 'octave::math::max' instead [-Wdeprecated-declarations]
liboctave/array/MArray.cc:114:3: warning: 'double xmin(double, double)' is deprecated: use 'octave::math::min' instead [-Wdeprecated-declarations]
liboctave/array/MArray.cc:133:3: warning: 'double xmax(double, double)' is deprecated: use 'octave::math::max' instead [-Wdeprecated-declarations]
liboctave/array/MArray.cc:114:3: warning: 'T xmin(T, T) [with T = int]' is deprecated: use 'octave::math::min' instead [-Wdeprecated-declarations]
liboctave/array/MArray.cc:133:3: warning: 'T xmax(T, T) [with T = int]' is deprecated: use 'octave::math::max' instead [-Wdeprecated-declarations]
liboctave/array/MArray.cc:114:3: warning: 'float xmin(float, float)' is deprecated: use 'octave::math::min' instead [-Wdeprecated-declarations]
liboctave/array/MArray.cc:133:3: warning: 'float xmax(float, float)' is deprecated: use 'octave::math::max' instead [-Wdeprecated-declarations]
liboctave/array/MArray.cc:114:3: warning: 'FloatComplex xmin(const FloatComplex&, const FloatComplex&)' is deprecated: use 'octave::math::min' instead [-Wdeprecated-declarations]
liboctave/array/MArray.cc:133:3: warning: 'FloatComplex xmax(const FloatComplex&, const FloatComplex&)' is deprecated: use 'octave::math::max' instead [-Wdeprecated-declarations]
liboctave/array/MArray.cc:114:3: warning: 'T xmin(T, T) [with T = short int]' is deprecated: use 'octave::math::min' instead [-Wdeprecated-declarations]
liboctave/array/MArray.cc:133:3: warning: 'T xmax(T, T) [with T = short int]' is deprecated: use 'octave::math::max' instead [-Wdeprecated-declarations]

Rik <rik5>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by rik5
  • -email is unavailable- added by rik5 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-07-15 rik5 StatusNone => Fixed
        Open/ClosedOpen => Closed
    2016-06-14 rik5 Carbon-Copy- => Added jwe

    Back to the top


    Powered by Savane 3.5