diff options
| author | Paul Eggert | 2024-01-28 00:15:38 -0800 |
|---|---|---|
| committer | Paul Eggert | 2024-01-28 00:26:44 -0800 |
| commit | 99a122b5b816f6c5dd2acc67eeca13eb4d1d8cd5 (patch) | |
| tree | 9c04001ec9ebd1dcf7aca46466aab48bed45e1c7 /src | |
| parent | e1970c99f097715fc5bb3b88154799bfe13de90f (diff) | |
| download | emacs-99a122b5b816f6c5dd2acc67eeca13eb4d1d8cd5.tar.gz emacs-99a122b5b816f6c5dd2acc67eeca13eb4d1d8cd5.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lisp.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; | |||
| 938 | /* LISPSYM_INITIALLY (Qfoo) is equivalent to Qfoo except it is | 938 | /* LISPSYM_INITIALLY (Qfoo) is equivalent to Qfoo except it is |
| 939 | designed for use as an initializer, even for a constant initializer. */ | 939 | designed for use as an initializer, even for a constant initializer. */ |
| 940 | #define LISPSYM_INITIALLY(name) \ | 940 | #define LISPSYM_INITIALLY(name) \ |
| 941 | TAG_PTR (Lisp_Symbol, (char *) (intptr_t) ((i##name) * sizeof *lispsym)) | 941 | TAG_PTR (Lisp_Symbol, (intptr_t) ((i##name) * sizeof *lispsym)) |
| 942 | 942 | ||
| 943 | /* Declare extern constants for Lisp symbols. These can be helpful | 943 | /* Declare extern constants for Lisp symbols. These can be helpful |
| 944 | when using a debugger like GDB, on older platforms where the debug | 944 | when using a debugger like GDB, on older platforms where the debug |