* tests/test-localename.c: Disable #pragma for GCC < 12.
* tests/test-dup2.c: Disable #pragma for GCC < 13.
* tests/test-fcntl.c: Likewise.
* tests/test-getdtablesize.c: Likewise.
* tests/test-listen.c: Likewise.
* tests/test-open.h: Likewise.
* tests/test-perror2.c: Likewise.
* tests/test-select.h: Likewise.
+2023-04-24 Bruno Haible <bruno@clisp.org>
+
+ tests: Suppress ‘#pragma GCC diagnostic’ warnings with GCC < 13.
+ * tests/test-localename.c: Disable #pragma for GCC < 12.
+ * tests/test-dup2.c: Disable #pragma for GCC < 13.
+ * tests/test-fcntl.c: Likewise.
+ * tests/test-getdtablesize.c: Likewise.
+ * tests/test-listen.c: Likewise.
+ * tests/test-open.h: Likewise.
+ * tests/test-perror2.c: Likewise.
+ * tests/test-select.h: Likewise.
+
2023-04-24 Bruno Haible <bruno@clisp.org>
select, pselect: Fix test failure on native Windows.
#include "macros.h"
/* Tell GCC not to warn about the specific edge cases tested here. */
-#if __GNUC__ >= 10
+#if __GNUC__ >= 13
# pragma GCC diagnostic ignored "-Wanalyzer-fd-leak"
# pragma GCC diagnostic ignored "-Wanalyzer-fd-use-without-check"
#endif
#include "macros.h"
/* Tell GCC not to warn about the specific edge cases tested here. */
-#if __GNUC__ >= 10
-# pragma GCC diagnostic ignored "-Wanalyzer-fd-leak"
-#endif
#if __GNUC__ >= 13
+# pragma GCC diagnostic ignored "-Wanalyzer-fd-leak"
# pragma GCC diagnostic ignored "-Wanalyzer-va-arg-type-mismatch"
#endif
#include "macros.h"
/* Tell GCC not to warn about the specific edge cases tested here. */
-#if __GNUC__ >= 10
+#if __GNUC__ >= 13
# pragma GCC diagnostic ignored "-Wanalyzer-fd-leak"
#endif
#include "macros.h"
/* Tell GCC not to warn about the specific edge cases tested here. */
-#if __GNUC__ >= 10
+#if __GNUC__ >= 13
# pragma GCC diagnostic ignored "-Wanalyzer-fd-use-without-check"
#endif
#endif
/* Suppress GCC false positive. */
-#if __GNUC__ >= 10
+#if __GNUC__ >= 12
# pragma GCC diagnostic ignored "-Wanalyzer-use-of-uninitialized-value"
#endif
/* Written by Bruno Haible <bruno@clisp.org>, 2007. */
/* Tell GCC not to warn about the specific edge cases tested here. */
-#if __GNUC__ >= 10
+#if __GNUC__ >= 13
# pragma GCC diagnostic ignored "-Wanalyzer-fd-leak"
#endif
#include <unistd.h>
/* Tell GCC not to warn about myerr being leaked. */
-#if __GNUC__ >= 10
+#if __GNUC__ >= 13
# pragma GCC diagnostic ignored "-Wanalyzer-fd-leak"
#endif
#endif
/* Tell GCC not to warn about the specific edge cases tested here. */
-#if __GNUC__ >= 10
+#if __GNUC__ >= 13
# pragma GCC diagnostic ignored "-Wanalyzer-fd-use-without-check"
#endif