Thanks! Will use __printf__, I even see it is documented.... Sorry. On Tue, Dec 22, 2009 at 9:50 PM, Kai Tietz <ktiet...@googlemail.com> wrote: > 2009/12/22 Alon Bar-Lev <alon.bar...@gmail.com>: >> #define _POSIX >> #include <stdio.h> >> >> int my_printf(char *format, ...) __attribute__((format(printf,1,2))); >> >> int main(void) { >> return 0; >> } >> >> $ x86_64-w64-mingw32-gcc -pedantic a.c >> a.c:4: warning: ‘__mingw_printf’ is an unrecognized format function type > > This is reasoned by the definition of _POSIX. In this case printf gets > redefined to __mingw_printf, which is used later in your formatter > .... ((format (printf, 1,2))) ... > Use instead of printf in formatter the __printf__ keyword, this fixes > your problem. > > Cheers, > Kai > > -- > | (\_/) This is Bunny. Copy and paste > | (='.'=) Bunny into your signature to help > | (")_(") him gain world domination >
------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public