Code::Blocks Forums

User forums => Help => Topic started by: candide on May 18, 2007, 11:48:40 pm

Title: Unexpected warning with pedantic compilation
Post by: candide on May 18, 2007, 11:48:40 pm
I'm using the 05/12/2007 Nightly build under Windows XP and the Mingw compiler.
Everything works fine except compiling an "hello word" project
with the compiler flags set to "pedantic" gives some unexpected warnings :

C:\MinGW\include\stdio.h:333: warning: ISO C90 does not support `long long'
C:\MinGW\include\sys\types.h:32: warning: ISO C90 does not support `long long'
C:\MinGW\include\sys\types.h:110: warning: ISO C90 does not support `long long'
C:\MinGW\include\sys\types.h:115: warning: ISO C90 does not support `long long'
C:\MinGW\include\stdio.h:424: warning: use of C99 long long integer constant
:: === Build finished: 0 errors, 5 warnings ===

The warnings come from the header files.


Any idea please ?
Title: Re: Unexpected warning with pedantic compilation
Post by: Ceniza on May 19, 2007, 01:07:53 am
If you're going to add -pedantic, add -std=c99 too.