From ca8c0059f3e86eb178733d7fa9a8b0ba20d9c2ca Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 12 Jun 2022 19:26:00 +0200 Subject: Fix warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- test.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test.c') diff --git a/test.c b/test.c index 3b1f559..412bd63 100644 --- a/test.c +++ b/test.c @@ -330,6 +330,9 @@ vfprintf(FILE *restrict stream, const char *restrict format, va_list ap) } +#if defined(__GNUC__) +__attribute__((__format__(__printf__, 2, 0))) +#endif int test_vfprintf(FILE *restrict stream, const char *restrict format, va_list ap) { -- cgit v1.2.3-70-g09d2