Re: [Mingw-w64-public] -Wformat error with

2012-02-25 Thread Erik de Castro Lopo
Kai Tietz wrote: > Your test-program is invalid. You should use here at: > > #if __GNUC__ > static inline void > exit_if_true (int test, const char *format, ...) >__attribute__ ((format (gnu_printf, 2, 3))) ; > #endif > > instead. The issue is that format(printf) remains for mingw-tar

Re: [Mingw-w64-public] -Wformat error with

2012-02-25 Thread Kai Tietz
Hi Erik, Your test-program is invalid. You should use here at: #if __GNUC__ static inline void exit_if_true (int test, const char *format, ...) __attribute__ ((format (gnu_printf, 2, 3))) ; #endif instead. The issue is that format(printf) remains for mingw-targets the MS printf-formatt

[Mingw-w64-public] -Wformat error with

2012-02-25 Thread Erik de Castro Lopo
Hi all, I'm using i686-w64-mingw32-gcc from Debian: COLLECT_GCC=i686-w64-mingw32-gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-w64-mingw32/4.6/lto-wrapper Target: i686-w64-mingw32 Configured with: ../../src/configure --build=x86_64-linux-gnu --prefix=/usr --includedir='/usr/in