diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2022-11-01 12:44:56 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2022-11-08 01:04:25 +0100 |
commit | d03a008e82b58593a6da7a79e6341a7a3a45da43 (patch) | |
tree | c02fb3f3e063c9e37b5dd8b3b3de0b4e59352844 /disas | |
parent | 50fc0945b6448903c0b696d373b004881ed37e1e (diff) | |
download | qemu-d03a008e82b58593a6da7a79e6341a7a3a45da43.zip qemu-d03a008e82b58593a6da7a79e6341a7a3a45da43.tar.gz qemu-d03a008e82b58593a6da7a79e6341a7a3a45da43.tar.bz2 |
disas/nanomips: Use G_GNUC_PRINTF to avoid invalid string formats
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>
Diffstat (limited to 'disas')
-rw-r--r-- | disas/nanomips.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/disas/nanomips.c b/disas/nanomips.c index e4b21e7..3f45447 100644 --- a/disas/nanomips.c +++ b/disas/nanomips.c @@ -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; |