* 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.
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
#$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
# 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