cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: warning: ISO C does not support the 'I64' ms_printf length modifier

From: Guenter <lists_at_gknw.net>
Date: Sat, 30 Jun 2012 17:51:39 +0200

Marc,
Am 30.06.2012 17:26, schrieb Marc Hoersken:
> It seems like this was reported to the MinGW people before, see the
> following post on the mingw-w64-public mailinglist:
> http://www.mail-archive.com/mingw-w64-public@lists.sourceforge.net/msg04635.html
>
> If he is correct it seems like the I64 modifier is not ANSI C
> compliant and therefore MinGW would be correct about warning about it.
but it would also be of interest to know what version your mingw-cross
is; f.e. my build here with gcc 4.5.2 does not throw this warning:
http://curl.haxx.se/dev/log.cgi?id=20120630133602-10386
while your build does:
http://curl.haxx.se/dev/log.cgi?id=20120629151115-27110#prob1

some further investigation reveals this:
(your build)
/bin/bash
../../libtool --tag=CC --mode=link i586-mingw32msvc-gcc -g0 -O2
-pedantic -Wall -W -Wpointer-arith -Wwrite-strings -Wunused -Wshadow
-Winline -Wnested-externs -Wmissing-declarations -Wmissing-prototypes
-Wno-long-long -Wfloat-equal -Wno-multichar -Wsign-compare -Wundef
-Wno-format-nonliteral -Wendif-labels -Wstrict-prototypes
-Wdeclaration-after-statement -Wstrict-aliasing=3 -Wcast-align
-Wtype-limits -Wold-style-declaration -Wmissing-parameter-type
-Wempty-body -Wclobbered -Wignored-qualifiers -Wconversion
-Wno-sign-conversion -Wvla -Wno-system-headers -o anyauthput.exe
anyauthput.o ../../lib/libcurl.la -L/tmp/win32dev/libdl/lib
-L/tmp/win32dev/pthread/lib -L/tmp/win32dev/nss-3.12.5-nspr-4.8.2/lib

(my build)
/bin/sh
../../libtool --tag=CC --mode=link i686-pc-mingw32-gcc -g0 -O2
-pedantic -Wall -W -Wpointer-arith -Wwrite-strings -Wunused -Wshadow
-Winline -Wnested-externs -Wmissing-declarations -Wmissing-prototypes
-Wno-long-long -Wfloat-equal -Wno-multichar -Wsign-compare -Wundef
-Wno-format-nonliteral -Wendif-labels -Wstrict-prototypes
-Wdeclaration-after-statement -Wstrict-aliasing=3 -Wcast-align
-Wtype-limits -Wold-style-declaration -Wmissing-parameter-type
-Wempty-body -Wclobbered -Wignored-qualifiers -Wconversion
-Wno-sign-conversion -Wvla -Wno-pedantic-ms-format -Wno-system-headers
-L/build-18294/ares -o anyauthput.exe anyauthput.o ../../lib/libcurl.la

so my build has the additional flag -Wno-pedantic-ms-format - my guess
is that this might fix the warnings for your build too, and that your
compiler is not correctly detected as mingw in configure, probably due
to no correct triplet (i586-mingw32msvc-gcc vs. i686-pc-mingw32-gcc) ...

BTW. would be nice if you could add your gcc version to the autobuild
description too ...

Gün.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-06-30