summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2026-05-27 13:55:27 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2026-05-27 14:01:40 -0700
commit6728239f32f7be4e9974b9f1bfc650b2f1083e82 (patch)
tree3e906b6db59b97e59cd08bc0c7d7aadaa7b01198
parent54b6ea14a928d015098c41f88aff126df169fecc (diff)
Use compound literal in lisp_h_make_fixnum_wrap
* 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'’.
-rw-r--r--src/lisp.h2
1 files changed, 1 insertions, 1 deletions
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; \