[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
./configure --enable-check-lisp-object-type
From: |
Lars Ingebrigtsen |
Subject: |
./configure --enable-check-lisp-object-type |
Date: |
Tue, 12 Apr 2022 18:58:54 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
For the first time in a while I enabled the Lisp object type, and I was
given a wall of
dispnew.c:6593:1: note: in expansion of macro ‘DEFUN’
6593 | DEFUN ("internal-show-cursor-p", Finternal_show_cursor_p,
| ^~~~~
lisp.h:3179:5: warning: missing braces around initializer [-Wmissing-braces]
3179 | {{{{ PVEC_SUBR << PSEUDOVECTOR_AREA_BITS },
\
| ^
for every DEFUN. That's new, isn't it? (This is on Debian/bookworm.)
This is from this:
#define DEFUN(lname, fnname, sname, minargs, maxargs, intspec, doc) \
SUBR_SECTION_ATTRIBUTE \
static union Aligned_Lisp_Subr sname = \
{{{ PVEC_SUBR << PSEUDOVECTOR_AREA_BITS }, \
{ .a ## maxargs = fnname }, \
minargs, maxargs, lname, {intspec}, 0}}; \
Lisp_Object fnname
That seems like beaucoup de braces, so is that a gcc bug or something?
(Adding more braces makes compilation fail.)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- ./configure --enable-check-lisp-object-type,
Lars Ingebrigtsen <=
- Re: ./configure --enable-check-lisp-object-type, Stefan Monnier, 2022/04/12
- Re: ./configure --enable-check-lisp-object-type, Eli Zaretskii, 2022/04/12
- Re: ./configure --enable-check-lisp-object-type, Lars Ingebrigtsen, 2022/04/12
- Re: ./configure --enable-check-lisp-object-type, Eli Zaretskii, 2022/04/12
- Re: ./configure --enable-check-lisp-object-type, Lars Ingebrigtsen, 2022/04/12
- Re: ./configure --enable-check-lisp-object-type, Eli Zaretskii, 2022/04/12
- Re: ./configure --enable-check-lisp-object-type, Stefan Monnier, 2022/04/12
- Re: ./configure --enable-check-lisp-object-type, martin rudalics, 2022/04/13