From d03a008e82b58593a6da7a79e6341a7a3a45da43 Mon Sep 17 00:00:00 2001 From: Philippe Mathieu-Daudé Date: Tue, 1 Nov 2022 12:44:56 +0100 Subject: disas/nanomips: Use G_GNUC_PRINTF to avoid invalid string formats Suggested-by: Stefan Weil Reviewed-by: Stefan Weil Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20221101114458.25756-4-philmd@linaro.org> --- disas/nanomips.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'disas') diff --git a/disas/nanomips.c b/disas/nanomips.c index e4b21e7c45..3f45447292 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; -- cgit v1.2.3-55-g7522