News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Unexpected warning with pedantic compilation

Started by candide, May 18, 2007, 11:48:40 PM

Previous topic - Next topic

candide

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 ?

Ceniza

If you're going to add -pedantic, add -std=c99 too.