]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Omit regex.c pragmas no longer needed
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 1 Jan 2024 18:40:37 +0000 (10:40 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 1 Jan 2024 18:53:40 +0000 (10:53 -0800)
* 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

index 08031cecc04be8aab7501e1381de097672cf7a9c..4b1a6ed68e31fe7c6c5f221a6cc93e83aac0b456 100644 (file)
 #  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.  */