diff mbox

acpi: Add missing GCC_FMT_ATTR

Message ID 1458157417-15856-1-git-send-email-sw@weilnetz.de (mailing list archive)
State New, archived
Headers show

Commit Message

Stefan Weil March 16, 2016, 7:43 p.m. UTC
This fixes a compiler warning when compiling with -Wextra.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
---
 include/hw/acpi/aml-build.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Igor Mammedov March 17, 2016, 2:57 p.m. UTC | #1
On Wed, 16 Mar 2016 20:43:37 +0100
Stefan Weil <sw@weilnetz.de> wrote:

> This fixes a compiler warning when compiling with -Wextra.
> 
> Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>

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

Patch

diff --git a/include/hw/acpi/aml-build.h b/include/hw/acpi/aml-build.h
index 66f48ec..2c994b3 100644
--- a/include/hw/acpi/aml-build.h
+++ b/include/hw/acpi/aml-build.h
@@ -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