]> git.ipfire.org Git - thirdparty/qemu.git/commit
w32: Always use standard instead of native format strings
authorStefan Weil <sw@weilnetz.de>
Wed, 22 Aug 2012 19:42:32 +0000 (21:42 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 12 Oct 2012 02:44:20 +0000 (21:44 -0500)
commit78fd27b3b6f0953a52b4a0f4d63265574d998582
treee7a2bafe28ec84270c0bd8cf8b2660076f37035e
parentd4413913e1709bdbc892260124843e75e55d0eed
w32: Always use standard instead of native format strings

GLib 2.0 include files use __printf__ for the format attribute
which resolves to native format strings on w32 hosts.

QEMU wants standard format strings instead of native format
strings, so we simply change any declaration with __printf__
to use __gnu_printf__.

This works because all basic printf functions support both
kinds of format strings.

This fixes a compiler warning:

qapi/string-output-visitor.c: In function ‘print_type_int’:
qapi/string-output-visitor.c:34:5: warning: unknown conversion type character ‘l’ in format [-Wformat]
qapi/string-output-visitor.c:34:5: warning: too many arguments for format [-Wformat-extra-args]

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
(cherry picked from commit 95df51a4a02a853af8828c281bce2d4f2a41d6fd)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
compiler.h