From: Paul Eggert Date: Sun, 17 Sep 2023 21:34:43 +0000 (-0700) Subject: intprops: pacify GCC -Wtype-limits X-Git-Tag: v1.0~778 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=4d38340a76dbee56036a5fcc0f052ebcff616a59;p=gnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index cdce8c12cb..49ee4e6dd1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2023-09-17 Paul Eggert + + 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 lib-symbol-visibility: Fix a misnomer. diff --git a/lib/intprops-internal.h b/lib/intprops-internal.h index 0467a9ca8f..41039a093b 100644 --- a/lib/intprops-internal.h +++ b/lib/intprops-internal.h @@ -20,6 +20,11 @@ #include +/* 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))