]> Savannah Git Hosting - gnulib.git/commitdiff
intprops: pacify GCC -Wtype-limits
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 17 Sep 2023 21:34:43 +0000 (14:34 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 17 Sep 2023 21:35:12 +0000 (14:35 -0700)
* lib/intprops-internal.h: Pacify gcc (GCC) 13.2.1 20230728 (Red
Hat 13.2.1-1) x86-64 -Wtype-limits on bleeding-edge diffutils.

ChangeLog
lib/intprops-internal.h

index cdce8c12cb2b12316fcc3ad0e5496da21a701bdb..49ee4e6dd154495bd274fabff387c0e9de2f6367 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-09-17  Paul Eggert  <eggert@cs.ucla.edu>
+
+       intprops: pacify GCC -Wtype-limits
+       * lib/intprops-internal.h: Pacify gcc (GCC) 13.2.1 20230728 (Red
+       Hat 13.2.1-1) x86-64 -Wtype-limits on bleeding-edge diffutils.
+
 2023-09-16  Bruno Haible  <bruno@clisp.org>
 
        lib-symbol-visibility: Fix a misnomer.
index 0467a9ca8f2f10a896a67c726794b1eb76ed7a2e..41039a093b67831adacd3e302ba0415e5913ee9c 100644 (file)
 
 #include <limits.h>
 
+/* Pacify GCC 13.2 in some calls to _GL_EXPR_SIGNED.  */
+#if defined __GNUC__ && 4 < __GNUC__ + (3 <= __GNUC_MINOR__)
+# pragma GCC diagnostic ignored "-Wtype-limits"
+#endif
+
 /* Return a value with the common real type of E and V and the value of V.
    Do not evaluate E.  */
 #define _GL_INT_CONVERT(e, v) ((1 ? 0 : (e)) + (v))