Warning cleanup

Howland Craig D (Craig) howland@LGSInnovations.com
Thu Mar 4 17:15:00 GMT 2010


math.h does not have prototypes for isnanf() or isinff(), but it
does have them for the __ versions.  Both versions exist for use
(i.e. are in libm for linking), so getting rid of the mis-direction in
the header file avoids not having a prototype but still works the same
avoiding a warning about not having a function prototype.
Craig

-----Original Message-----
From: newlib-owner@sourceware.org [mailto:newlib-owner@sourceware.org]
On Behalf Of Corinna Vinschen
Sent: Thursday, March 04, 2010 12:08 PM
To: newlib@sourceware.org
Subject: Re: Warning cleanup

...
> -#define __isnanf isnanf
> -#define __isinff isinff

This one is not clear to me.  What compiler warning did you see?  I see
that our common isnanf and __isnanf functions are identically defined,
but I assume there must have been a reason by the original author to
redefined __isnanf to isnanf.


Corinna



More information about the Newlib mailing list