From 4d38340a76dbee56036a5fcc0f052ebcff616a59 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 17 Sep 2023 14:34:43 -0700 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ lib/intprops-internal.h | 5 +++++ 2 files changed, 11 insertions(+) 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)) -- 2.39.5