Stefan Weil 867d898ccf acpi-build: Fix compiler warning (missing gnu_printf format attribute)
gcc 4.8.2 reports this warning when extra warnings are enabled (-Wextra):

  CC    m68k-softmmu/hw/m68k/mcf5206.o
hw/i386/acpi-build.c: In function ‘build_append_nameseg’:
hw/i386/acpi-build.c:294:5: error:
 function might be possible candidate for ‘gnu_printf’ format attribute [-Werror=suggest-attribute=format]
     g_string_vprintf(s, format, args);
     ^

When this warning is fixed, there is a new compiler warning:

  CC    i386-softmmu/hw/i386/acpi-build.o
hw/i386/acpi-build.c: In function ‘build_append_notify’:
hw/i386/acpi-build.c:632:5: error:
 format not a string literal and no format arguments [-Werror=format-security]
     build_append_nameseg(method, name);
     ^

This is fixed here, too.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2013-12-02 21:02:57 +04:00
..
2013-11-05 19:57:46 -08:00
2013-10-31 16:58:32 +01:00
2013-11-05 19:57:47 -08:00
2013-07-29 21:06:57 +02:00
2013-07-29 21:07:02 +02:00
2013-11-05 19:57:47 -08:00
2013-10-14 17:48:52 +03:00
2013-11-21 17:39:04 +01:00
2013-09-03 12:31:07 -05:00
2013-07-29 21:07:01 +02:00
2013-11-05 20:04:03 -08:00
2013-08-22 19:10:27 +02:00
2013-11-21 07:55:26 -08:00
2013-09-03 12:31:07 -05:00