|
|
4a2fec |
From 14a39ceeb99060eae4088513e0e81f5946c442fd Mon Sep 17 00:00:00 2001
|
|
|
4a2fec |
From: "Daniel P. Berrange" <berrange@redhat.com>
|
|
|
4a2fec |
Date: Wed, 20 Dec 2017 17:57:02 +0100
|
|
|
4a2fec |
Subject: [PATCH 22/42] io: Add missing GCC_FMT_ATTR (fix
|
|
|
4a2fec |
-Werror=suggest-attribute=format)
|
|
|
4a2fec |
MIME-Version: 1.0
|
|
|
4a2fec |
Content-Type: text/plain; charset=UTF-8
|
|
|
4a2fec |
Content-Transfer-Encoding: 8bit
|
|
|
4a2fec |
|
|
|
4a2fec |
RH-Author: Daniel P. Berrange <berrange@redhat.com>
|
|
|
4a2fec |
Message-id: <20171220175702.29663-21-berrange@redhat.com>
|
|
|
4a2fec |
Patchwork-id: 78473
|
|
|
4a2fec |
O-Subject: [RHV-7.5 qemu-kvm-rhev PATCH v2 20/20] io: Add missing GCC_FMT_ATTR (fix -Werror=suggest-attribute=format)
|
|
|
4a2fec |
Bugzilla: 1518649
|
|
|
4a2fec |
RH-Acked-by: John Snow <jsnow@redhat.com>
|
|
|
4a2fec |
RH-Acked-by: Jeffrey Cody <jcody@redhat.com>
|
|
|
4a2fec |
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
4a2fec |
|
|
|
4a2fec |
From: Stefan Weil <sw@weilnetz.de>
|
|
|
4a2fec |
|
|
|
4a2fec |
This fixes a compiler warning:
|
|
|
4a2fec |
|
|
|
4a2fec |
/qemu/io/channel-websock.c:163:5: error:
|
|
|
4a2fec |
function might be possible candidate for ‘gnu_printf’ format attribute
|
|
|
4a2fec |
[-Werror=suggest-attribute=format]
|
|
|
4a2fec |
|
|
|
4a2fec |
Signed-off-by: Stefan Weil <sw@weilnetz.de>
|
|
|
4a2fec |
Acked-by: Daniel P. Berrange <berrange@redhat.com>
|
|
|
4a2fec |
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
|
|
|
4a2fec |
(cherry picked from commit 52aa5644e8e89ebfc3b1d0abdb7cc502ce9db599)
|
|
|
4a2fec |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
4a2fec |
---
|
|
|
4a2fec |
io/channel-websock.c | 7 ++++---
|
|
|
4a2fec |
1 file changed, 4 insertions(+), 3 deletions(-)
|
|
|
4a2fec |
|
|
|
4a2fec |
diff --git a/io/channel-websock.c b/io/channel-websock.c
|
|
|
4a2fec |
index df2c3a9..87ebdeb 100644
|
|
|
4a2fec |
--- a/io/channel-websock.c
|
|
|
4a2fec |
+++ b/io/channel-websock.c
|
|
|
4a2fec |
@@ -152,9 +152,10 @@ enum {
|
|
|
4a2fec |
QIO_CHANNEL_WEBSOCK_OPCODE_PONG = 0xA
|
|
|
4a2fec |
};
|
|
|
4a2fec |
|
|
|
4a2fec |
-static void qio_channel_websock_handshake_send_res(QIOChannelWebsock *ioc,
|
|
|
4a2fec |
- const char *resmsg,
|
|
|
4a2fec |
- ...)
|
|
|
4a2fec |
+static void GCC_FMT_ATTR(2, 3)
|
|
|
4a2fec |
+qio_channel_websock_handshake_send_res(QIOChannelWebsock *ioc,
|
|
|
4a2fec |
+ const char *resmsg,
|
|
|
4a2fec |
+ ...)
|
|
|
4a2fec |
{
|
|
|
4a2fec |
va_list vargs;
|
|
|
4a2fec |
char *response;
|
|
|
4a2fec |
--
|
|
|
4a2fec |
1.8.3.1
|
|
|
4a2fec |
|