From: Michael Jeanson Date: Fri, 1 Mar 2024 19:19:38 +0000 (-0500) Subject: Add GCC pragma ignore to tests X-Git-Tag: RELEASE_1_4_5~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84752132e20bf713d69d96f5effec04b7041e3e2;p=thirdparty%2Fmlmmj.git Add GCC pragma ignore to tests Add the GCC version of the ignore pragma. Signed-off-by: Michael Jeanson --- 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