On Tue, Aug 21, 2012 at 3:11 PM, Greg Peele wrote: > > >> Date: Tue, 21 Aug 2012 14:46:51 -0400 >> From: [email protected] >> To: [email protected] >> Subject: Re: [Mingw-w64-public] printf + long long on GCC 4.7.1 >> >> On Tue, Aug 21, 2012 at 2:35 PM, Greg Peele wrote: >> > >> > If this is a spurious warning, I can use -Wno-format to suppress it >> > (this >> > inline method gets included a LOT of places in my code) but of course >> > that >> > loses the ability of using that warning as a legitimate way to warn >> > about >> > printf bugs. >> > >> >> IIRC, you want -Wno-pedantic-ms-format instead. > > Tried that and no effect on the warning. Here's my actual GCC command line > so I can check I'm not accidentally re-enabling something: > > F:\mingw64-gcc471\bin\g++.exe -Wall -Werror=return-type -m64 > -fno-enforce-eh-specs -Wno-pedantic-ms-format -fexceptions -frtti -O3 > -fomit-frame-pointer -DNDEBUG
http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html -Wno-pedantic-ms-format (MinGW targets only) Disables the warnings about non-ISO printf / scanf format width specifiers I32, I64, and I used on Windows targets depending on the MS runtime, when you are using the options -Wformat and -Wpedantic without gnu-extensions. -- Earnie -- https://sites.google.com/site/earnieboyd ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
