[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 99a122b5b81 1/4: Fix C conformance issue in LISPSYM_INITIALLY
From: |
Paul Eggert |
Subject: |
master 99a122b5b81 1/4: Fix C conformance issue in LISPSYM_INITIALLY |
Date: |
Sun, 28 Jan 2024 03:26:59 -0500 (EST) |
branch: master
commit 99a122b5b816f6c5dd2acc67eeca13eb4d1d8cd5
Author: Paul Eggert <eggert@cs.ucla.edu>
Commit: Paul Eggert <eggert@cs.ucla.edu>
Fix C conformance issue in LISPSYM_INITIALLY
* src/lisp.h (LISPSYM_INITIALLY): Remove unnecessary cast to char *.
The C standard allows but does not require support for casts to
pointers in constant expressions in static initializers.
---
src/lisp.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lisp.h b/src/lisp.h
index c2dfd1afad5..eb78176aed6 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -938,7 +938,7 @@ typedef EMACS_UINT Lisp_Word_tag;
/* LISPSYM_INITIALLY (Qfoo) is equivalent to Qfoo except it is
designed for use as an initializer, even for a constant initializer. */
#define LISPSYM_INITIALLY(name) \
- TAG_PTR (Lisp_Symbol, (char *) (intptr_t) ((i##name) * sizeof *lispsym))
+ TAG_PTR (Lisp_Symbol, (intptr_t) ((i##name) * sizeof *lispsym))
/* Declare extern constants for Lisp symbols. These can be helpful
when using a debugger like GDB, on older platforms where the debug