mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 14:50:05 +00:00
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.
This commit is contained in:
parent
1059defeee
commit
540b740c8a
@ -26,10 +26,6 @@
|
|||||||
# pragma GCC diagnostic ignored "-Wsuggest-attribute=pure"
|
# pragma GCC diagnostic ignored "-Wsuggest-attribute=pure"
|
||||||
# pragma GCC diagnostic ignored "-Wvla"
|
# pragma GCC diagnostic ignored "-Wvla"
|
||||||
# endif
|
# endif
|
||||||
# if __GNUC_PREREQ (4, 3)
|
|
||||||
# pragma GCC diagnostic ignored "-Wold-style-definition"
|
|
||||||
# pragma GCC diagnostic ignored "-Wtype-limits"
|
|
||||||
# endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Make sure no one compiles this code with a C++ compiler. */
|
/* Make sure no one compiles this code with a C++ compiler. */
|
||||||
|
Loading…
Reference in New Issue
Block a user