* [Qemu-devel] [PATCH] acpi: Add missing GCC_FMT_ATTR
@ 2016-03-16 19:43 Stefan Weil
2016-03-17 14:57 ` Igor Mammedov
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Weil @ 2016-03-16 19:43 UTC (permalink / raw)
To: QEMU Developer, QEMU Trivial
Cc: Igor Mammedov, Stefan Weil, Michael S. Tsirkin
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(-)
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
--
2.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] acpi: Add missing GCC_FMT_ATTR
2016-03-16 19:43 [Qemu-devel] [PATCH] acpi: Add missing GCC_FMT_ATTR Stefan Weil
@ 2016-03-17 14:57 ` Igor Mammedov
0 siblings, 0 replies; 2+ messages in thread
From: Igor Mammedov @ 2016-03-17 14:57 UTC (permalink / raw)
To: Stefan Weil; +Cc: QEMU Trivial, QEMU Developer, Michael S. Tsirkin
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-03-17 14:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-16 19:43 [Qemu-devel] [PATCH] acpi: Add missing GCC_FMT_ATTR Stefan Weil
2016-03-17 14:57 ` Igor Mammedov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).