]> Savannah Git Hosting - gnulib.git/commitdiff
tests: Suppress ‘#pragma GCC diagnostic’ warnings with GCC < 13.
authorBruno Haible <bruno@clisp.org>
Mon, 24 Apr 2023 22:14:01 +0000 (00:14 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 24 Apr 2023 22:14:01 +0000 (00:14 +0200)
* 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.

ChangeLog
tests/test-dup2.c
tests/test-fcntl.c
tests/test-getdtablesize.c
tests/test-listen.c
tests/test-localename.c
tests/test-open.h
tests/test-perror2.c
tests/test-select.h

index 587b2103230dfbd60e7f4b5216df69bcd47e9242..2ecdc4751272f5d71b1894153c1b85e973fa64f3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+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.
index e7957271ad271257d9501984187dcd57fbc37a10..8acbc038caec0b9bb2ae330ccd8a73bd82000ae4 100644 (file)
@@ -51,7 +51,7 @@ SIGNATURE_CHECK (dup2, int, (int, int));
 #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
index c2b7377b59584e9f5aa4b9b09a807fc0c1ec4585..5fb554afe74dfc42688986ceecb27de3630402fd 100644 (file)
@@ -45,10 +45,8 @@ SIGNATURE_CHECK (fcntl, int, (int, int, ...));
 #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
 
index 4eb28d9b1e6e5fba309c24d87a0c67ac37c89f5a..d2c93f19a401df18a3331bfbe78b627506f9b70b 100644 (file)
@@ -26,7 +26,7 @@ SIGNATURE_CHECK (getdtablesize, int, (void));
 #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
 
index b245e48f3ad9c5d3bb1b59a637ad47e00e15bc4d..8d85779bfc36d1dff47095cabed53b76d70b9b81 100644 (file)
@@ -28,7 +28,7 @@ SIGNATURE_CHECK (listen, int, (int, int));
 #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
 
index 090afeb5383d1f062cee9607490981341ed80502..6d97efb050948156f64c88439ad1ceef7a7c0db7 100644 (file)
@@ -36,7 +36,7 @@
 #endif
 
 /* Suppress GCC false positive.  */
-#if __GNUC__ >= 10
+#if __GNUC__ >= 12
 # pragma GCC diagnostic ignored "-Wanalyzer-use-of-uninitialized-value"
 #endif
 
index f01523dc16df3f09cc1b52aa1365934d3bf2c752..d3af8215d039de6e1a72c130246d9cd0335fb609 100644 (file)
@@ -17,7 +17,7 @@
 /* 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
 
index 0c96832d37cb1174666bc773839b380ab673165f..25390ff53315d4840b3b035f03d19e08fd696257 100644 (file)
@@ -23,7 +23,7 @@
 #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
 
index af840d2bc896076c3563d27038118ea752f824eb..902e085bcdee92fcdd4da1fa40ca4803a190ca55 100644 (file)
@@ -38,7 +38,7 @@
 #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