]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
disas/nanomips: Use G_GNUC_PRINTF to avoid invalid string formats
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 1 Nov 2022 11:44:56 +0000 (12:44 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 8 Nov 2022 00:04:25 +0000 (01:04 +0100)
Suggested-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20221101114458.25756-4-philmd@linaro.org>

disas/nanomips.c

index e4b21e7c45b676a25947c4e31cc9c052eaa22176..3f45447292c452b1b8ac969e3295a2dd75443a9c 100644 (file)
@@ -95,7 +95,7 @@ typedef struct Pool {
 #define IMGASSERTONCE(test)
 
 
-static char *img_format(const char *format, ...)
+static char * G_GNUC_PRINTF(1, 2) img_format(const char *format, ...)
 {
     char *buffer;
     va_list args;