From 6728239f32f7be4e9974b9f1bfc650b2f1083e82 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 27 May 2026 13:55:27 -0700 Subject: [PATCH] Use compound literal in lisp_h_make_fixnum_wrap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * src/lisp.h (lisp_h_make_fixnum_wrap) [USE_LSB_TAG]: Use compound literal, not cast. This pacifies -Wuseless-cast when building on Fedora 44 x86-64 with ‘./configure --enable-gcc-warnings CFLAGS='-O2 -DDEFINE_KEY_OPS_AS_MACROS'’. --- src/lisp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lisp.h b/src/lisp.h index 764205dcf90..370c8effa48 100644 --- a/src/lisp.h +++ b/src/lisp.h @@ -407,7 +407,7 @@ typedef EMACS_INT Lisp_Word; #define lisp_h_XHASH(a) XUFIXNUM_RAW (a) #if USE_LSB_TAG # define lisp_h_make_fixnum_wrap(n) \ - XIL ((EMACS_INT) (((EMACS_UINT) (n) << INTTYPEBITS) + Lisp_Int0)) + XIL ((EMACS_INT) (((EMACS_UINT) {(n)} << INTTYPEBITS) + Lisp_Int0)) # if defined HAVE_STATEMENT_EXPRESSIONS && defined HAVE_TYPEOF # define lisp_h_make_fixnum(n) \ ({ typeof (+(n)) lisp_h_make_fixnum_n = n; \