acpi: Add missing GCC_FMT_ATTR
authorStefan Weil <sw@weilnetz.de>
Wed, 16 Mar 2016 19:43:37 +0000 (20:43 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 7 Apr 2016 16:57:33 +0000 (19:57 +0300)
This fixes a compiler warning when compiling with -Wextra.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
include/hw/acpi/aml-build.h

index 66f48ec..2c994b3 100644 (file)
@@ -369,6 +369,7 @@ build_rsdt(GArray *table_data, GArray *linker, GArray *table_offsets,
            const char *oem_id, const char *oem_table_id);
 
 int
-build_append_named_dword(GArray *array, const char *name_format, ...);
+build_append_named_dword(GArray *array, const char *name_format, ...)
+GCC_FMT_ATTR(2, 3);
 
 #endif