]> Savannah Git Hosting - gnulib.git/commitdiff
Omit no-longer-needed pragmas
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 29 Dec 2023 18:33:42 +0000 (10:33 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 30 Dec 2023 03:22:42 +0000 (19:22 -0800)
* lib/anytostr.c, lib/poll.c, lib/regex.c:
Omit pragmas that should no longer be needed.

ChangeLog
lib/anytostr.c
lib/poll.c
lib/regex.c

index fd92a5741ba6cb88c78cc438c4697348aaf29108..41a85b3cf1d40faaef4cb74f5cb0979bf283e959 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2023-12-29  Paul Eggert  <eggert@cs.ucla.edu>
 
+       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
index 3b74789631376815c465ae69e8e09729b4e4d176..72c0998b0ca3bf3d48ca234113a31e47dad60ec1 100644 (file)
 
 /* 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 <config.h>
 
 #include "inttostr.h"
index ec8d2c2b55cc9c43780a0515d18294c82806d78f..c1401561577726f768d870739f7adb99617763ef 100644 (file)
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-/* 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 <config.h>
 #include <alloca.h>
 
index 3beb0deb98717e9b684b4069d60d490780ce4fb6..f050ba8de41ee7e76cc4b1e9a147aa9a1961a877 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.  */