bugGNU Octave - Bugs: bug #52753, Minor typo...

 
 

bug #52753: Minor typo "isdeprecated" instead of "is deprecated"

Submitter:  None
Submitted:  Thu 28 Dec 2017 03:59:49 PM UTC
   
 
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 4.2.1
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 28 Dec 2017 08:00:37 PM UTC, comment #3: 

The Octave source code has the is_empty function marked as deprecated.  It's the compiler that is checking that attribute and printing out the warning message.  I'm guessing that gcc 4.8.4 is relatively old and maybe they have an internal issue with the first printed warning message.  It's not an Octave bug in any case so I'll close this report.

Rik <rik5>
Group administrator
Thu 28 Dec 2017 07:48:31 PM UTC, comment #2: 

Thank you for your response

I was using the octave command: pkg install

My guess this uses gcc, so in my case it is:
gcc v4.8.4

Maybe I was not clear
The first function calls utils.h empty_arg and returns
isdeprecated

The second function calls utils.h empty_arg and returns
is deprecated

I thought I would receive the same return.
If it is a compiler issue then close the bug, since it does not pertain to octave.

Anonymous
Thu 28 Dec 2017 06:10:22 PM UTC, comment #1: 

What compiler are you using?

The "is deprecated" warning is coming from your compiler and possibly there is a problem there.

Rik <rik5>
Group administrator
Thu 28 Dec 2017 03:59:49 PM UTC, original submission:  

Hello

While working on:
https://savannah.gnu.org/bugs/?func=detailitem&item_id=52744

I started cleaning the deprecated functions and noticed this:

genqamdemod.cc:39:23: warning: ‘int empty_arg(const char*, octave_idx_type, octave_idx_type)’ isdeprecated (declared at /usr/include/octave-4.2.1/octave/../octave/utils.h:58): use 'octave_value::is_empty' instead [-Wdeprecated-declarations]
   int arg_is_empty1 = empty_arg ("genqamdemod", nr1, nc1);

For the same call later down the message is:

gf.cc:1215:22: warning: ‘int empty_arg(const char*, octave_idx_type, octave_idx_type)’  is deprecated  (declared at /usr/include/octave-4.2.1/octave/../octave/utils.h:58): use 'octave_value::is_empty' instead [-Wdeprecated-declarations]
   int arg_is_empty = empty_arg ("grank", nr, nc);


Anonymous

 

(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 rik5 (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-12-28 rik5 CategoryNone Configuration and Build System
        StatusNone Invalid / Not an Octave Bug
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code