bugGNU Octave - Bugs: bug #49131, compilation warning in...

 
 

bug #49131: compilation warning in getopt-wrapper.cc

Submitter:  None
Submitted:  Mon 19 Sep 2016 06:41:38 PM UTC
   
 
Category:  Libraries Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * dev
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 19 Sep 2016 07:56:48 PM UTC, comment #1: 

Fixed on the default branch, will be in the next release candidate, thank you for reporting

http://hg.savannah.gnu.org/hgweb/octave/rev/1e007e986396

Mike Miller <mtmiller>
Group Member
Mon 19 Sep 2016 06:41:38 PM UTC, original submission:  

The following warning occurs with current dev versions:
- gcc 4.9.3, x86_64-pc-linux-gnu, RHEL 6.8


../octave/liboctave/wrappers/getopt-wrapper.c: In function 'octave_getopt_long_wrapper':
../octave/liboctave/wrappers/getopt-wrapper.c:98:35: warning: passing argument 2 of 'rpl_getopt_long' discards 'const' qualifier from pointer target type
   int retval = getopt_long (argc, argv, shortopts, lopts, longind);
                                   ^
In file included from ../octave/liboctave/wrappers/getopt-wrapper.c:34:0:
./config.h:3261:25: note: expected 'char **' but argument is of type 'char * const*'
 #define __GETOPT_PREFIX rpl_


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 mtmiller (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-09-19 mtmiller StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code