summaryrefslogtreecommitdiff
path: root/io
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2017-10-07 16:56:09 +0200
committerMichael Tokarev <mjt@tls.msk.ru>2017-10-16 21:03:47 +0300
commit52aa5644e8e89ebfc3b1d0abdb7cc502ce9db599 (patch)
tree056f83a89de206b63472137850f7d05538342d0a /io
parent429cc0d31f5a5063caedc4567b97999c7191374e (diff)
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 <sw@weilnetz.de> Acked-by: Daniel P. Berrange <berrange@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'io')
-rw-r--r--io/channel-websock.c7
1 files changed, 4 insertions, 3 deletions
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;