From 52aa5644e8e89ebfc3b1d0abdb7cc502ce9db599 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sat, 7 Oct 2017 16:56:09 +0200 Subject: io: Add missing GCC_FMT_ATTR (fix -Werror=suggest-attribute=format) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- io/channel-websock.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'io/channel-websock.c') diff --git a/io/channel-websock.c b/io/channel-websock.c index d1d471f86e..7bf1340958 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; -- cgit v1.2.3