From: Paul Eggert Date: Fri, 29 Dec 2023 18:33:42 +0000 (-0800) Subject: Omit no-longer-needed pragmas X-Git-Tag: v1.0~554 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=2ebbe794ac93b9896643092d40a057f493f57fe1;p=gnulib.git Omit no-longer-needed pragmas * lib/anytostr.c, lib/poll.c, lib/regex.c: Omit pragmas that should no longer be needed. --- diff --git a/ChangeLog b/ChangeLog index fd92a5741b..41a85b3cf1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2023-12-29 Paul Eggert + Omit no-longer-needed pragmas + * lib/anytostr.c, lib/poll.c, lib/regex.c: + Omit pragmas that should no longer be needed. + gnulib-common: suppress -Wtautological-constant-out-of-range-compare * m4/gnulib-common.m4 (gl_CC_GNULIB_WARNINGS): Pass -Wno-tautological-constant-out-of-range-compare to clang, as it’s diff --git a/lib/anytostr.c b/lib/anytostr.c index 3b74789631..72c0998b0c 100644 --- a/lib/anytostr.c +++ b/lib/anytostr.c @@ -17,13 +17,6 @@ /* Written by Paul Eggert */ -/* Tell gcc not to warn about the (i < 0) test, below. */ -#if (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) || 4 < __GNUC__ -# pragma GCC diagnostic ignored "-Wtype-limits" -#elif defined __clang__ -# pragma clang diagnostic ignored "-Wtautological-compare" -#endif - #include #include "inttostr.h" diff --git a/lib/poll.c b/lib/poll.c index ec8d2c2b55..c140156157 100644 --- a/lib/poll.c +++ b/lib/poll.c @@ -18,11 +18,6 @@ You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ -/* Tell gcc not to warn about the (nfd < 0) tests, below. */ -#if (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) || 4 < __GNUC__ -# pragma GCC diagnostic ignored "-Wtype-limits" -#endif - #include #include diff --git a/lib/regex.c b/lib/regex.c index 3beb0deb98..f050ba8de4 100644 --- a/lib/regex.c +++ b/lib/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. */