]> git.proxmox.com Git - qemu.git/commit - qemu-error.h
Replace most gcc format attributes by macro GCC_FMT_ATTR (format checking)
authorStefan Weil <weil@mail.berlios.de>
Thu, 23 Sep 2010 19:28:03 +0000 (21:28 +0200)
committerBlue Swirl <blauwirbel@gmail.com>
Sun, 3 Oct 2010 06:34:36 +0000 (06:34 +0000)
commite5924d8980e0bd027f2f12fa702ec1c555538230
tree74d22ef9b1e233ae742b9e5873da6202c9ea3b30
parent4a2b39d3232fea40d3e396a683f27f5e378ae46e
Replace most gcc format attributes by macro GCC_FMT_ATTR (format checking)

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).

The patch replaces format attribute printf / __printf__ by macro
GCC_FMT_ATTR which uses gnu_printf if supported.

It also removes an #ifdef __GNUC__ (not needed any longer).

Cc: Blue Swirl <blauwirbel@gmail.com>
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
audio/audio.h
bsd-user/qemu.h
darwin-user/qemu.h
hw/xen_backend.h
linux-user/qemu.h
monitor.h
qemu-common.h
qemu-error.h
qerror.h
qjson.h