summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2023-03-20 19:46:06 +0100
committerBruno Haible <bruno@clisp.org>2023-03-20 19:46:06 +0100
commitdd723a3ed53cc3b969c6abdf7b0fb6ea8339079a (patch)
treea01fa74f8a7ae7e9643b718aa1258a62ac787aea /tests
parent4e739e2c602663d826f891e9d2e3bfdd57da44ff (diff)
downloadgnulib-dd723a3ed53cc3b969c6abdf7b0fb6ea8339079a.tar.gz
memrchr tests: Avoid GCC warning.
* tests/test-memrchr.c: Don't use '#pragma GCC diagnostic' for GCC versions older than 4.7.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-memrchr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-memrchr.c b/tests/test-memrchr.c
index 0fd22187ab..7c52e7ca2e 100644
--- a/tests/test-memrchr.c
+++ b/tests/test-memrchr.c
@@ -28,7 +28,7 @@ SIGNATURE_CHECK (memrchr, void *, (void const *, int, size_t));
#include "macros.h"
/* Work around GCC bug 101494. */
-#if 4 < __GNUC__ + (3 <= __GNUC_MINOR__) && __GNUC__ < 12
+#if 4 < __GNUC__ + (7 <= __GNUC_MINOR__) && __GNUC__ < 12
# pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif