This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Warning cleanup


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]