aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2024-01-01 10:40:37 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2024-01-01 10:53:40 -0800
commit540b740c8a23480d6360a437c9f8b5949f05e9fe (patch)
tree282e1b35c577dcf1903d35490310fb34cb6ad707
parent1059defeee95e28c65b266a55eba6d47d852026b (diff)
downloadglibc-540b740c8a23480d6360a437c9f8b5949f05e9fe.zip
glibc-540b740c8a23480d6360a437c9f8b5949f05e9fe.tar.gz
glibc-540b740c8a23480d6360a437c9f8b5949f05e9fe.tar.bz2
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.
-rw-r--r--posix/regex.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/posix/regex.c b/posix/regex.c
index 08031cec..4b1a6ed 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. */