From 84752132e20bf713d69d96f5effec04b7041e3e2 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Fri, 1 Mar 2024 14:19:38 -0500 Subject: [PATCH] Add GCC pragma ignore to tests Add the GCC version of the ignore pragma. Signed-off-by: Michael Jeanson --- tests/mlmmj.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/mlmmj.c b/tests/mlmmj.c index d829b076..5d5ffdfb 100644 --- a/tests/mlmmj.c +++ b/tests/mlmmj.c @@ -21,7 +21,12 @@ */ #include "tllist.h" + +#if defined(__clang__) #pragma clang diagnostic ignored "-Wgnu-zero-variadic-macro-arguments" +#elif defined(__GNUC__) +#pragma GCC diagnostic ignored "-Wformat-zero-length" +#endif #include #include -- 2.47.2