On Sat, Sep 19, 2009 at 11:02 AM, Erik de Castro Lopo
<mle+...@mega-nerd.com> wrote:
> Ozkan Sezer wrote:
>
>> Hmm, with my versions gcc-4.4.2 (svn r151768, patched but
>> nothing that would affect this) and mingw-w64 r1375-r1378,
>> I get:
>>
>> x86_64-pc-mingw32-gcc -Wall -std=gnu99 test.c
>> test.c: In function 'main':
>> test.c:6: warning: unknown conversion type character 'z' in format
>> test.c:6: warning: too many arguments for format
>>
>> Notice that it's not an 'error' but a warning.  How come you
>> get an error?
>
> Quite honestly, I think an unknown conversion type should be an
> error. The compiler is saying it doesn't understand the format
> conversion so it is almost certainly not going to do  the right
> thing.
>
>>  And if I add -D__USE_MINGW_ANSI_STDIO=1
>> to the command line, then I get no warnings at all.  Did you try
>> with -D__USE_MINGW_ANSI_STDIO=1 ?
>
> Yes, that fixes it. How come I have to use that for the w64 cross
> compiler but I don't need it for the w32 cross compiler?
>

You need it with both.  (Although, if your w32 toolchain is
a mingw.org toolchain and not ours, they may have automatically
defined __USE_MINGW_ANSI_STDIO as 1 upon seeing -std=c99.  Kai,
should we do that?)

> Erik

--
Ozkan

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to