Received: from eggs.gnu.org ([2001:4830:134:3::10]:34154) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vj4U9-0008AJ-JI for qemu-devel@nongnu.org; Wed, 20 Nov 2013 04:54:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vj4Tz-0001fq-JS for qemu-devel@nongnu.org; Wed, 20 Nov 2013 04:54:13 -0500 Message-ID: <528C86B1.4020808@msgid.tls.msk.ru> Date: Wed, 20 Nov 2013 13:53:53 +0400 From: Michael Tokarev MIME-Version: 1.0 References: <1384711242-8978-1-git-send-email-sw@weilnetz.de> In-Reply-To: <1384711242-8978-1-git-send-email-sw@weilnetz.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [Qemu-trivial] [PATCH for 1.7] qobject: Fix compiler warning (missing gnu_printf format attribute) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: qemu-trivial@nongnu.org, qemu-devel , Anthony Liguori 17.11.2013 22:00, Stefan Weil wrote: > gcc 4.8.2 reports this warning when extra warnings are enabled (-Wextra= ): >=20 > CC qobject/qerror.o > qobject/qerror.c: In function =E2=80=98qerror_from_info=E2=80=99: > qobject/qerror.c:53:5: error: > function might be possible candidate for =E2=80=98gnu_printf=E2=80=99 = format attribute [-Werror=3Dsuggest-attribute=3Dformat] > qerr->err_msg =3D g_strdup_vprintf(fmt, *va); > ^ Thanks, applied to the trivial-patches queue. Hopefully we found and ver= ified all invlcations of qerror_from_info() and there really are no "wrong" inv= ocations which will lead to new warnings after this printf attribute addition... ;= ) (This function is static so only this file needed to be checked). /mjt