qtest: Add missing GCC_FMT_ATTR
PATCH 1/1 qtest: Add missing GCC_FMT_ATTR
gcc reports an error when the code is compiled with -Wmissing-format-attribute.
Signed-off-by Stefan Weil <[email protected]>
--- qtest.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
qtest.c +2 -1
@@ -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
Stefan Hajnoczi
AppliedQuoted 6 lines · Stefan Weil
gcc reports an error when the code is compiled with -Wmissing-format-attribute.
Signed-off-by Stefan Weil <[email protected]>--- qtest.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
Thanks, applied to the trivial patches tree:
https://github.com/stefanha/qemu/commits/trivial-patches
Stefan