summaryrefslogtreecommitdiff
path: root/tests/test-fopen.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-fopen.h')
-rw-r--r--tests/test-fopen.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test-fopen.h b/tests/test-fopen.h
index a03c931816..751afd8c61 100644
--- a/tests/test-fopen.h
+++ b/tests/test-fopen.h
@@ -23,6 +23,11 @@
#include "macros.h"
+/* Tell GCC not to warn about the specific edge cases tested here. */
+#if __GNUC__ >= 10
+# pragma GCC diagnostic ignored "-Wanalyzer-file-leak"
+#endif
+
/* Test fopen. Assumes BASE is defined. */
static int