Compiling code that includes stdlib.h with the GCC options -ansi -pedantic reports the following warnings on two lines of stdlib.h: /usr/include/stdlib.h:110: warning: ANSI C does not support `long long' /usr/include/stdlib.h:114: warning: ANSI C does not support `long long' These lines are the strtoll and strtoull functions. Fix: Add #ifndef __STRICT_ANSI__ wrappers around the offending lines: How-To-Repeat: Compile a short program with gcc -ansi -pedantic that includes stdlib.h: #include <stdlib.h> int main() { return 0; }
On Mon, Oct 07, 2002 at 12:03:32PM -0700, Peter Johnson wrote: > >Description: > Compiling code that includes stdlib.h with the GCC options -ansi -pedantic > reports the following warnings on two lines of stdlib.h: > /usr/include/stdlib.h:110: warning: ANSI C does not support `long long' > /usr/include/stdlib.h:114: warning: ANSI C does not support `long long' > These lines are the strtoll and strtoull functions. This is fixed in -CURRENT. I'll try to get the change MFC'd for 4.8 (it's too late to do it for 4.7). Tim
Hello, > > Compiling code that includes stdlib.h with the GCC options -ansi -pedantic > > reports the following warnings on two lines of stdlib.h: > > /usr/include/stdlib.h:110: warning: ANSI C does not support `long long' > > /usr/include/stdlib.h:114: warning: ANSI C does not support `long long' > > These lines are the strtoll and strtoull functions. > > This is fixed in -CURRENT. I'll try to get the change MFC'd for 4.8 (it's too > late to do it for 4.7). If I may butt in, wouldn't the timing be just about right? Thank you, Cedric Ware.
On Thu, Dec 12, 2002 at 03:50:02PM -0800, Cedric Ware wrote: > If I may butt in, wouldn't the timing be just about right? Thanks for the reminder. I've just committed a patch that should fix this problem. Tim
State Changed From-To: open->closed Fixed in revision 1.16.2.5 of stdlib.h. Thanks for pointing this out.