Skip to contentSkip to conversation

acpi: Add missing GCC_FMT_ATTR

PATCH In review Stefan Weil 2 participants 2 messages Mar 16, 2016 – Mar 17, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 acpi: Add missing GCC_FMT_ATTR

This fixes a compiler warning when compiling with -Wextra.

---
 include/hw/acpi/aml-build.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
include/hw/acpi/aml-build.h +2 -1
index 66f48ec..2c994b3 100644
@@ -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
Signature · 1 line
2.1.4
Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · On Wed, 16 Mar 2016 20:43:37 +0100 Stefan Weil <[email protected]> wrote:

This fixes a compiler warning when compiling with -Wextra.

Quoted 17 lines
---
 include/hw/acpi/aml-build.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
include/hw/acpi/aml-build.h +2 -1
index 66f48ec..2c994b3 100644
@@ -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