diff options
author | Stefan Weil | 2012-03-31 17:11:31 +0200 |
---|---|---|
committer | Stefan Hajnoczi | 2012-04-03 10:34:34 +0200 |
commit | 3f97fd851cf7b16b822c2c366e02708070f713bb (patch) | |
tree | 32436a8fa04b42e7d5d6c11dad94fe0d71067f72 /qtest.c | |
parent | w32: Undefine error constants before their redefinition (diff) | |
download | qemu-3f97fd851cf7b16b822c2c366e02708070f713bb.tar.gz qemu-3f97fd851cf7b16b822c2c366e02708070f713bb.tar.xz qemu-3f97fd851cf7b16b822c2c366e02708070f713bb.zip |
qtest: Add missing GCC_FMT_ATTR
gcc reports an error when the code is compiled with -Wmissing-format-attribute.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'qtest.c')
-rw-r--r-- | qtest.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -156,7 +156,8 @@ static void qtest_send_prefix(CharDriverState *chr) tv.tv_sec, tv.tv_usec); } -static void qtest_send(CharDriverState *chr, const char *fmt, ...) +static void GCC_FMT_ATTR(2, 3) qtest_send(CharDriverState *chr, + const char *fmt, ...) { va_list ap; char buffer[1024]; |