summaryrefslogtreecommitdiff
path: root/tests/test-select.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-select.h')
-rw-r--r--tests/test-select.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test-select.h b/tests/test-select.h
index ceeb485471..af840d2bc8 100644
--- a/tests/test-select.h
+++ b/tests/test-select.h
@@ -37,6 +37,10 @@
# include <sys/wait.h>
#endif
+/* Tell GCC not to warn about the specific edge cases tested here. */
+#if __GNUC__ >= 10
+# pragma GCC diagnostic ignored "-Wanalyzer-fd-use-without-check"
+#endif
typedef int (*select_fn) (int, fd_set *, fd_set *, fd_set *, struct timeval *);