all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* ./configure --enable-check-lisp-object-type
@ 2022-04-12 16:58 Lars Ingebrigtsen
  2022-04-12 17:23 ` Stefan Monnier
  0 siblings, 1 reply; 9+ messages in thread
From: Lars Ingebrigtsen @ 2022-04-12 16:58 UTC (permalink / raw)
  To: emacs-devel@gnu.org

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




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-04-13  8:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-12 16:58 ./configure --enable-check-lisp-object-type Lars Ingebrigtsen
2022-04-12 17:23 ` Stefan Monnier
2022-04-12 17:43   ` Eli Zaretskii
2022-04-12 18:27     ` Lars Ingebrigtsen
2022-04-12 18:34       ` Eli Zaretskii
2022-04-12 18:40         ` Lars Ingebrigtsen
2022-04-12 19:05           ` Eli Zaretskii
2022-04-12 22:20             ` Stefan Monnier
2022-04-13  8:47         ` martin rudalics

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.