]> Savannah Git Hosting - gnulib.git/commitdiff
memrchr-tests: port to GCC 12
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 12 Aug 2021 21:36:34 +0000 (14:36 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 12 Aug 2021 21:36:59 +0000 (14:36 -0700)
* tests/test-memrchr.c: Bug#101494 is fixed in GCC 12.

ChangeLog
tests/test-memrchr.c

index b8a93468d4d8f02cd70a2f54c51b14f89eed354d..105600bb210b376c3bb7f0bb54decc76f26262c9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2021-08-12  Paul Eggert  <eggert@cs.ucla.edu>
+
+       memrchr-tests: port to GCC 12
+       * tests/test-memrchr.c: Bug#101494 is fixed in GCC 12.
+
 2021-08-12  Akim Demaille  <akim@lrde.epita.fr>
 
        snippet/_Noreturn: Fix typo
index 9df55c1588a8bf326e36c9d941fb71a11f1acca5..ad2e611c09f718faa12be9c5ceb16236273b84b4 100644 (file)
@@ -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__)
+#if 4 < __GNUC__ + (3 <= __GNUC_MINOR__) && __GNUC__ < 12
 # pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
 #endif