From: Stefan Weil Date: Sat, 7 Oct 2017 14:56:09 +0000 (+0200) Subject: io: Add missing GCC_FMT_ATTR (fix -Werror=suggest-attribute=format) X-Git-Tag: v2.11.0-rc0~46^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=52aa5644e8e89ebfc3b1d0abdb7cc502ce9db599;p=thirdparty%2Fqemu.git io: Add missing GCC_FMT_ATTR (fix -Werror=suggest-attribute=format) This fixes a compiler warning: /qemu/io/channel-websock.c:163:5: error: function might be possible candidate for ‘gnu_printf’ format attribute [-Werror=suggest-attribute=format] Signed-off-by: Stefan Weil Acked-by: Daniel P. Berrange Signed-off-by: Michael Tokarev --- diff --git a/io/channel-websock.c b/io/channel-websock.c index d1d471f86e6..7bf13409585 100644 --- a/io/channel-websock.c +++ b/io/channel-websock.c @@ -151,9 +151,10 @@ enum { QIO_CHANNEL_WEBSOCK_OPCODE_PONG = 0xA }; -static void qio_channel_websock_handshake_send_res(QIOChannelWebsock *ioc, - const char *resmsg, - ...) +static void GCC_FMT_ATTR(2, 3) +qio_channel_websock_handshake_send_res(QIOChannelWebsock *ioc, + const char *resmsg, + ...) { va_list vargs; char *response;