Re: [Qemu-devel] [PATCH 1/2] Add support for gcc format attribute gnu_printf

2010-09-20 Thread Stefan Weil
Am 20.09.2010 21:18, schrieb Blue Swirl: On Mon, Sep 13, 2010 at 8:02 PM, Stefan Weil wrote: Since version 4.4.x, gcc supports additional format attributes. __attribute__ ((format (gnu_printf, 1, 2))) should be used instead of __attribute__ ((format (printf, 1, 2)) because QEMU alwa

Re: [Qemu-devel] [PATCH 1/2] Add support for gcc format attribute gnu_printf

2010-09-20 Thread Blue Swirl
On Mon, Sep 13, 2010 at 8:02 PM, Stefan Weil wrote: > Since version 4.4.x, gcc supports additional format attributes. >    __attribute__ ((format (gnu_printf, 1, 2))) > should be used instead of >    __attribute__ ((format (printf, 1, 2)) > because QEMU always uses standard format strings (even wi

[Qemu-devel] [PATCH 1/2] Add support for gcc format attribute gnu_printf

2010-09-13 Thread Stefan Weil
Since version 4.4.x, gcc supports additional format attributes. __attribute__ ((format (gnu_printf, 1, 2))) should be used instead of __attribute__ ((format (printf, 1, 2)) because QEMU always uses standard format strings (even with mingw32). For older compilers, we simply define gnu_print