From c86bab3fb4d2a52d6970d1fffd00e1b112b0b3c9 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 17 Jan 2023 06:29:17 -0700 Subject: [PATCH] [test-paint] Use G_GNUC_PRINTF --- test/api/test-paint.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/api/test-paint.c b/test/api/test-paint.c index 0ba32d501..84258c2cc 100644 --- a/test/api/test-paint.c +++ b/test/api/test-paint.c @@ -54,9 +54,7 @@ typedef struct { GString *string; } paint_data_t; -#ifndef _MSC_VER -static void print (paint_data_t *data, const char *format, ...) __attribute__((format (printf, 2, 3))); -#endif +static void print (paint_data_t *data, const char *format, ...) G_GNUC_PRINTF (2, 3); static void print (paint_data_t *data,