projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cec29c
)
qtest: Add missing GCC_FMT_ATTR
author
Stefan Weil
<sw@weilnetz.de>
Sat, 31 Mar 2012 15:11:31 +0000
(17:11 +0200)
committer
Stefan Hajnoczi
<stefanha@linux.vnet.ibm.com>
Tue, 3 Apr 2012 08:34:34 +0000
(09:34 +0100)
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>
qtest.c
patch
|
blob
|
history
diff --git
a/qtest.c
b/qtest.c
index
daeabb7
..
18afcd9
100644
(file)
--- a/
qtest.c
+++ b/
qtest.c
@@
-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];