bugGNU Octave - Bugs: bug #58542, mexGetNaN not defined correctly in...

 
 

bug #58542: mexGetNaN not defined correctly in /usr/include/octave-4.2.2/octave/mex.h

Submitter:  None
Submitted:  Thu 11 Jun 2020 01:12:17 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Fixed Assigned to:  None
Originator Name:  Claude Marinier Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 6.0.90
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 12 Jun 2020 10:56:11 AM UTC, comment #1: 

Thanks for the report and the fix.
Octave 4.2.2 is no longer in development. Re-targeting to the current stable branch which is Octave 6.0.90.

This looks like a typo to me. See also the Mathworks documentation:
https://de.mathworks.com/help/matlab/apiref/mxgetnan.html

Fixed on the stable branch which will eventually be released as Octave 6.1:
https://hg.savannah.gnu.org/hgweb/octave/rev/2c607b7ecee9

Closing as fixed.

Markus Mützel <mmuetzel>
Group administrator
Thu 11 Jun 2020 01:12:17 PM UTC, original submission:  

When using mexGetNaN, the compiler complains.

In file included from fillmissing.c:24:0:
fillmissing.c: In function ‘mexFunction’:
/usr/include/octave-4.2.2/octave/mex.h:83:19: warning: implicit declaration of function ‘mxGetNan’; did you mean ‘mxGetNaN’? [-Wimplicit-function-declaration]
 #define mexGetNaN mxGetNan
                   ^
fillmissing.c:148:22: note: in expansion of macro ‘mexGetNaN’
             vro[0] = mexGetNaN(); /* initial value */

Replacing the line with the following fixes the problem.

 #define mexGetNaN mxGetNaN

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #49240:  fillmissing.c added by None (8KiB - text/x-csrc)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mmuetzel (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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-06-12 mmuetzel CategoryOctave Function Interpreter
        StatusNone Fixed
        Open/ClosedOpen Closed
        Release4.2.2 6.0.90
        Operating SystemGNU/Linux Any
    2020-06-11 None Attached File- Added fillmissing.c, #49240

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code