Received: from eggs.gnu.org ([2001:4830:134:3::10]:32875) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLIxD-0001pk-KA for qemu-devel@nongnu.org; Wed, 05 Mar 2014 16:02:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WLIxA-0006kL-UR for qemu-devel@nongnu.org; Wed, 05 Mar 2014 16:02:15 -0500 Received: from qemu.weilnetz.de ([2a03:4000:2:362::1]:37576 helo=v2201305906712890.yourvserver.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLIxA-0006js-Oq for qemu-devel@nongnu.org; Wed, 05 Mar 2014 16:02:12 -0500 From: Stefan Weil Date: Wed, 5 Mar 2014 22:02:06 +0100 Message-Id: <1394053327-27964-1-git-send-email-sw@weilnetz.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH] qjson.h: Remove GCC_FMT_ATTR markup from qobject_from_jsonv() declaration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, Peter Maydell Cc: Stefan Weil , =?UTF-8?q?Andreas=20F=C3=A4rber?= Commit aa830cdc28edb69c1fe81c8fd9471ab288ad0926 removed that attribute from qobject_from_json. Now gcc suggests to add it again when compiler flag -Wmissing-format-attribute is used: qobject/qjson.c: In function =E2=80=98qobject_from_json=E2=80=99: qobject/qjson.c:53:5: error: function might be possible candidate for =E2=80=98gnu_printf=E2=80=99 fo= rmat attribute [-Werror=3Dsuggest-attribute=3Dformat] Fix this by removing the flag from qobject_from_jsonv, too. Signed-off-by: Stefan Weil --- Maybe the last remaining GCC_FMT_ATTR should be removed, too. Please revi= ew. Regards, Stefan Weil include/qapi/qmp/qjson.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/qapi/qmp/qjson.h b/include/qapi/qmp/qjson.h index ee4d31a..e122380 100644 --- a/include/qapi/qmp/qjson.h +++ b/include/qapi/qmp/qjson.h @@ -21,7 +21,7 @@ =20 QObject *qobject_from_json(const char *string); QObject *qobject_from_jsonf(const char *string, ...) GCC_FMT_ATTR(1, 2); -QObject *qobject_from_jsonv(const char *string, va_list *ap) GCC_FMT_ATT= R(1, 0); +QObject *qobject_from_jsonv(const char *string, va_list *ap); =20 QString *qobject_to_json(const QObject *obj); QString *qobject_to_json_pretty(const QObject *obj); --=20 1.7.10.4