From 540b740c8a23480d6360a437c9f8b5949f05e9fe Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 1 Jan 2024 10:40:37 -0800 Subject: [PATCH] Omit regex.c pragmas no longer needed * posix/regex.c: [!_LIBC && __GNUC_PREREQ (4, 3)]: Omit GCC pragmas no longer needed when this file is used as part of Gnulib. -Wold-style-definition no longer needs to be ignored because the regex code no longer uses old style definitions. -Wtype-limits no longer needs to be ignored because Gnulib already arranges for it to be ignored in the C compiler flags. This patch is taken from Gnulib. --- posix/regex.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/posix/regex.c b/posix/regex.c index 08031cecc0..4b1a6ed68e 100644 --- a/posix/regex.c +++ b/posix/regex.c @@ -26,10 +26,6 @@ # pragma GCC diagnostic ignored "-Wsuggest-attribute=pure" # pragma GCC diagnostic ignored "-Wvla" # endif -# if __GNUC_PREREQ (4, 3) -# pragma GCC diagnostic ignored "-Wold-style-definition" -# pragma GCC diagnostic ignored "-Wtype-limits" -# endif #endif /* Make sure no one compiles this code with a C++ compiler. */