User forums > Help

Unexpected warning with pedantic compilation

(1/1)

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.

Navigation

[0] Message Index

Go to full version