From 3f97fd851cf7b16b822c2c366e02708070f713bb Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sat, 31 Mar 2012 17:11:31 +0200 Subject: qtest: Add missing GCC_FMT_ATTR gcc reports an error when the code is compiled with -Wmissing-format-attribute. Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- qtest.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'qtest.c') diff --git a/qtest.c b/qtest.c index daeabb7c25..18afcd9cf1 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]; -- cgit v1.2.1