public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] Omit regex.c pragmas no longer needed
@ 2024-01-01 18:56 Paul Eggert
0 siblings, 0 replies; only message in thread
From: Paul Eggert @ 2024-01-01 18:56 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=540b740c8a23480d6360a437c9f8b5949f05e9fe
commit 540b740c8a23480d6360a437c9f8b5949f05e9fe
Author: Paul Eggert <eggert@cs.ucla.edu>
Date: Mon Jan 1 10:40:37 2024 -0800
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.
Diff:
---
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. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-01-01 18:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-01 18:56 [glibc] Omit regex.c pragmas no longer needed Paul Eggert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).