]> xenbits.xensource.com Git - qemu-upstream-4.4-testing.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)
committerStefan Hajnoczi <stefanha@gmail.com>
Sun, 23 Sep 2012 06:39:22 +0000 (07:39 +0100)
commit95df51a4a02a853af8828c281bce2d4f2a41d6fd
tree8e8d52c41e13464e1ab79dc91b8a36514ff94842
parent73062dfe6be0050dbd43ce3516e935ebb2545add
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>
compiler.h