Author Topic: Unexpected warning with pedantic compilation  (Read 8816 times)

Offline candide

  • Single posting newcomer
  • *
  • Posts: 8
Unexpected warning with pedantic compilation
« 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 ?

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Re: Unexpected warning with pedantic compilation
« Reply #1 on: May 19, 2007, 01:07:53 am »
If you're going to add -pedantic, add -std=c99 too.