]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
regex: pacify gcc 15.2
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 10 Sep 2025 16:22:17 +0000 (09:22 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 10 Sep 2025 16:22:17 +0000 (09:22 -0700)
* config/srclist.txt: Stop listing lib/regex.c.
* lib/regex.c: Also ignore -Wswitch-enum.
Needed for gcc 15.2.1 20250808 (Red Hat 15.2.1-1) x86-64.

ChangeLog
config/srclist.txt
lib/regex.c

index 8b83dca9f6570e6e6406247a0cabe5ba5a405844..8ff66910a1d377ecff1e2bd0d49ebf5fae42d107 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2025-09-10  Paul Eggert  <eggert@cs.ucla.edu>
 
+       regex: pacify gcc 15.2
+       * config/srclist.txt: Stop listing lib/regex.c.
+       * lib/regex.c: Also ignore -Wswitch-enum.
+       Needed for gcc 15.2.1 20250808 (Red Hat 15.2.1-1) x86-64.
+
        regex: fix support for overriding "gnulib"
        Problem reported by Pádraig Brady in:
        https://lists.gnu.org/r/bug-gnulib/2025-09/msg00104.html
index cd68f38c5d80b1449d5eb400c452551ba75cebb6..c9e6b4336ef20da9e0beee7d5d9866eb41add5d9 100644 (file)
@@ -68,7 +68,7 @@ $LIBCSRC malloc/scratch_buffer_set_array_size.c       lib/malloc
 #$LIBCSRC include/intprops.h             lib
 #$LIBCSRC misc/sys/cdefs.h             lib
 #$LIBCSRC posix/regcomp.c              lib
-$LIBCSRC posix/regex.c                 lib
+#$LIBCSRC posix/regex.c                        lib
 #$LIBCSRC posix/regex.h                        lib
 #$LIBCSRC posix/regex_internal.c       lib
 #$LIBCSRC posix/regex_internal.h       lib
index f5f6552670d1de559652621a0491b4713f490598..1404dac75344e2280d677e7ea1a128eeaed5e547 100644 (file)
@@ -24,6 +24,7 @@
 
 # if __GNUC_PREREQ (4, 6)
 #  pragma GCC diagnostic ignored "-Wsuggest-attribute=pure"
+#  pragma GCC diagnostic ignored "-Wswitch-enum"
 #  pragma GCC diagnostic ignored "-Wvla"
 # endif
 #endif