Skip to contentSkip to conversation

qtest: Add missing GCC_FMT_ATTR

PATCH Applied Stefan Weil 2 participants 2 messages Mar 31, 2012 – Apr 2, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qtest: Add missing GCC_FMT_ATTR

gcc reports an error when the code is compiled with -Wmissing-format-attribute.

---
 qtest.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
qtest.c +2 -1
index cd7186c..53e2ed6 100644
@@ -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];
Signature · 1 line
1.7.9