From: Stefan Weil Date: Sat, 31 Mar 2012 15:11:31 +0000 (+0200) Subject: qtest: Add missing GCC_FMT_ATTR X-Git-Tag: v1.1-rc0~127^2~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3f97fd851cf7b16b822c2c366e02708070f713bb;p=thirdparty%2Fqemu.git 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 --- diff --git a/qtest.c b/qtest.c index daeabb7c258..18afcd9cf19 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];