emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ./configure --enable-check-lisp-object-type


From: Eli Zaretskii
Subject: Re: ./configure --enable-check-lisp-object-type
Date: Tue, 12 Apr 2022 22:05:45 +0300

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: monnier@iro.umontreal.ca,  akrl@sdf.org,  emacs-devel@gnu.org
> Date: Tue, 12 Apr 2022 20:40:31 +0200
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > And if you build without --enable-check-lisp-object-type, does it
> > compile cleanly with the additional braces?
> 
> Ah, no:
> 
> alloc.c:7847:8: warning: braces around scalar initializer
>  7847 |        4, 4, "watch_gc_cons_percentage", {0}, {0}}};
>       |        ^
> 
> 
> And similarly, the braces in DEFUN leads to:
> 
> xmenu.c:2773:1: note: in expansion of macro 'DEFUN'
>  2773 | DEFUN ("menu-or-popup-active-p", Fmenu_or_popup_active_p, 
> Smenu_or_popup_active_p, 0, 0, 0,
>       | ^~~~~
> lisp.h:3178:16: note: (near initialization for 
> 'Smenu_or_popup_active_p.s.command_modes')
> 
> in a non-enable-check build.

Which means we need 2 different initializations, conditioned on
CHECK_LISP_OBJECT_TYPE.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]