Received: from eggs.gnu.org ([2001:4830:134:3::10]:52704) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZ0Sq-0004GO-L0 for qemu-devel@nongnu.org; Fri, 20 Mar 2015 13:12:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YZ0Sp-0002pZ-QH for qemu-devel@nongnu.org; Fri, 20 Mar 2015 13:12:04 -0400 From: Stefan Weil Date: Fri, 20 Mar 2015 18:11:58 +0100 Message-Id: <1426871518-2761-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] acpi: Add missing GCC_FMT_ATTR to local function List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEMU Trivial Cc: Stefan Weil , QEMU Developer , "Michael S. Tsirkin" This fixes these gcc warnings (not enabled in default build): hw/acpi/aml-build.c:83:5: warning: function might be possible candidate for =E2=80=98gnu_printf=E2=80=99 fo= rmat attribute [-Wsuggest-attribute=3Dformat] hw/acpi/aml-build.c:88:5: warning: function might be possible candidate for =E2=80=98gnu_printf=E2=80=99 fo= rmat attribute [-Wsuggest-attribute=3Dformat] Cc: Michael S. Tsirkin Signed-off-by: Stefan Weil --- hw/acpi/aml-build.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index 6242908..d7945f6 100644 --- a/hw/acpi/aml-build.c +++ b/hw/acpi/aml-build.c @@ -68,7 +68,7 @@ build_append_nameseg(GArray *array, const char *seg) g_array_append_vals(array, "____", ACPI_NAMESEG_LEN - len); } =20 -static void +static void GCC_FMT_ATTR(2, 0) build_append_namestringv(GArray *array, const char *format, va_list ap) { /* It would be nicer to use g_string_vprintf but it's only there in = 2.22 */ --=20 2.1.4