diff options
author | Bruno Haible <bruno@clisp.org> | 2023-04-25 00:14:01 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2023-04-25 00:14:01 +0200 |
commit | 94f25cc670d0a9c81db75881ab7da0a4b19b9f11 (patch) | |
tree | d7d2e7dbe5fad4662bca055a7fe1beedf6e6e249 /tests | |
parent | 034af0e401ce3279afd444c09ded2d64142b0f2f (diff) | |
download | gnulib-94f25cc670d0a9c81db75881ab7da0a4b19b9f11.tar.gz |
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.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-dup2.c | 2 | ||||
-rw-r--r-- | tests/test-fcntl.c | 4 | ||||
-rw-r--r-- | tests/test-getdtablesize.c | 2 | ||||
-rw-r--r-- | tests/test-listen.c | 2 | ||||
-rw-r--r-- | tests/test-localename.c | 2 | ||||
-rw-r--r-- | tests/test-open.h | 2 | ||||
-rw-r--r-- | tests/test-perror2.c | 2 | ||||
-rw-r--r-- | tests/test-select.h | 2 |
8 files changed, 8 insertions, 10 deletions
diff --git a/tests/test-dup2.c b/tests/test-dup2.c index e7957271ad..8acbc038ca 100644 --- a/tests/test-dup2.c +++ b/tests/test-dup2.c @@ -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 diff --git a/tests/test-fcntl.c b/tests/test-fcntl.c index c2b7377b59..5fb554afe7 100644 --- a/tests/test-fcntl.c +++ b/tests/test-fcntl.c @@ -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 diff --git a/tests/test-getdtablesize.c b/tests/test-getdtablesize.c index 4eb28d9b1e..d2c93f19a4 100644 --- a/tests/test-getdtablesize.c +++ b/tests/test-getdtablesize.c @@ -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 diff --git a/tests/test-listen.c b/tests/test-listen.c index b245e48f3a..8d85779bfc 100644 --- a/tests/test-listen.c +++ b/tests/test-listen.c @@ -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 diff --git a/tests/test-localename.c b/tests/test-localename.c index 090afeb538..6d97efb050 100644 --- a/tests/test-localename.c +++ b/tests/test-localename.c @@ -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 diff --git a/tests/test-open.h b/tests/test-open.h index f01523dc16..d3af8215d0 100644 --- a/tests/test-open.h +++ b/tests/test-open.h @@ -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 diff --git a/tests/test-perror2.c b/tests/test-perror2.c index 0c96832d37..25390ff533 100644 --- a/tests/test-perror2.c +++ b/tests/test-perror2.c @@ -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 diff --git a/tests/test-select.h b/tests/test-select.h index af840d2bc8..902e085bcd 100644 --- a/tests/test-select.h +++ b/tests/test-select.h @@ -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 |