diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-argmatch.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test-argmatch.c b/tests/test-argmatch.c index a7ea67cef4..ef105360b9 100644 --- a/tests/test-argmatch.c +++ b/tests/test-argmatch.c @@ -19,6 +19,13 @@ #include <config.h> +/* As of GCC 11.2.1, gcc -Wanalyzer-too-complex reports that main's + use of CHECK macros expands to code that is too complicated for gcc + -fanalyzer. Suppress the resulting bogus warnings. */ +#if 10 <= __GNUC__ +# pragma GCC diagnostic ignored "-Wanalyzer-null-argument" +#endif + #include "argmatch.h" #include <stdlib.h> |