bugGNU Octave - Bugs: bug #49505, optim package:...

 
 

bug #49505: optim package: no-return-in-nonvoid-function

Submitter:  Dmitry <rdmitry>
Submitted:  Tue 01 Nov 2016 12:14:02 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * other Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 17 Nov 2016 06:33:09 PM UTC, comment #2: 

The pushed patch silences this and another (-Wall) warning in samin.cc. Thanks. Note that the no-return-warning was wrong, the return was only too well hidden for the compiler.

Olaf Till <i7tiol>
Group Member
Thu 17 Nov 2016 03:52:43 AM UTC, comment #1: 

On inspection, looks like DEFUN_DLD(samin) is missing a "return octave_value_list()" at the end if it really is expected to never return anything.

No sure about the other one, does the build system give any hint what that is about? Is it talking about the same function, that the lack of a return leaves random data on the stack?

Adding package maintainer in cc.

Mike Miller <mtmiller>
Group Member
Tue 01 Nov 2016 12:14:02 PM UTC, original submission:  

Octave 4.2.0-rc3, optim package version 1.5.2

[  117s] I: Program returns random data in a function
[  117s] E: octave-forge-optim no-return-in-nonvoid-function samin.cc:536

Unfortunately openSUSE build system marks such warnings as build errors.

Dmitry <rdmitry>

 

(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 i7tiol (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by mtmiller
  • -email is unavailable- added by rdmitry (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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-11-17 mtmiller StatusNone Fixed
        Open/ClosedOpen Closed
    2016-11-17 mtmiller Release4.2.0-rc3 other
        SummaryOctave Forge optim no-return-in-nonvoid-function optim package: no-return-in-nonvoid-function
        Carbon-Copy- Added i7tiol

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code