[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-trivial] [PATCH] qtest: Add missing GCC_FMT_ATTR
From: |
Stefan Weil |
Subject: |
[Qemu-trivial] [PATCH] qtest: Add missing GCC_FMT_ATTR |
Date: |
Sat, 31 Mar 2012 17:11:31 +0200 |
gcc reports an error when the code is compiled with -Wmissing-format-attribute.
Signed-off-by: Stefan Weil <address@hidden>
---
qtest.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/qtest.c b/qtest.c
index cd7186c..53e2ed6 100644
--- 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];
--
1.7.9
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-trivial] [PATCH] qtest: Add missing GCC_FMT_ATTR,
Stefan Weil <=