Re: [Qemu-devel] [PATCH] error framework: Fix compilation for w32/w64

2011-06-15 Thread Luiz Capitulino
On Mon, 13 Jun 2011 23:01:53 +0200 Stefan Weil wrote: > The declaration of function error_set() should use macro GCC_FMT_ATTR > instead of gcc's format printf attribute. > > For w32/w64, both declarations are different and GCC_FMT_ATTR is needed. > Compilation for w64 even failed with the origin

[Qemu-devel] [PATCH] error framework: Fix compilation for w32/w64

2011-06-13 Thread Stefan Weil
The declaration of function error_set() should use macro GCC_FMT_ATTR instead of gcc's format printf attribute. For w32/w64, both declarations are different and GCC_FMT_ATTR is needed. Compilation for w64 even failed with the original code because mingw64 defines a macro for printf. GCC_FMT_ATTR