mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-06-14 04:21:24 +00:00
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'’.
This commit is contained in:
parent
54b6ea14a9
commit
6728239f32
1 changed files with 1 additions and 1 deletions
|
|
@ -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; \
|
||||
|
|
|
|||
Loading…
Reference in a new issue