>From 02f5a419fdcfb3fb6c8a3e4debe7224010b40227 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 6 May 2020 10:57:18 -0700 Subject: [PATCH] Pacify buggy old GCC with a cast * src/bignum.h (bignum_integer): Pacify GCC 4.8.5. Problem reported by Andreas Schwab in: https://lists.gnu.org/r/emacs-devel/2020-05/msg00781.html --- src/bignum.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bignum.h b/src/bignum.h index ad9021f15f..4a906c3c0e 100644 --- a/src/bignum.h +++ b/src/bignum.h @@ -108,7 +108,8 @@ bignum_integer (mpz_t *tmp, Lisp_Object i) if (FIXNUMP (i)) { mpz_set_intmax (*tmp, XFIXNUM (i)); - return tmp; + /* The unnecessary cast pacifies a buggy GCC 4.8.5. */ + return (mpz_t const *) tmp; } return xbignum_val (i); } -- 2.17.1