diff options
Diffstat (limited to 'tests/test-open.h')
-rw-r--r-- | tests/test-open.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test-open.h b/tests/test-open.h index 18549c4c4f..f01523dc16 100644 --- a/tests/test-open.h +++ b/tests/test-open.h @@ -16,6 +16,11 @@ /* Written by Bruno Haible <bruno@clisp.org>, 2007. */ +/* Tell GCC not to warn about the specific edge cases tested here. */ +#if __GNUC__ >= 10 +# pragma GCC diagnostic ignored "-Wanalyzer-fd-leak" +#endif + /* Make test_open always inline if we're using Fortify, which defines __always_inline to do that. Do nothing otherwise. This works around a glibc bug whereby 'open' cannot be used as a function |