emacs-devel
[Top][All Lists]
Advanced

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

Re: Suspicious warning in W64 build


From: Paul Eggert
Subject: Re: Suspicious warning in W64 build
Date: Sun, 17 Sep 2017 21:52:04 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0

Eli Zaretskii wrote:
I don't know what "works" means in this context.

It means that the rest of the C source code is fontified as usual, and fontification isn't confused by use of UNINIT.

It doesn't fontify UNINIT as an assignment that it is.

UNINIT is an attribute for a declarator; it is not an assignment, and should not be fontified as an assignment. Although the UNINIT macro might be implemented as an '=' followed by an initializer at the low level, this is not always true and UNINIT's user should not assume this implementation detail.

Emacs uses lots of other macros for declaration attributes, such as ATTRIBUTE_UNUSED and ATTRIBUTE_CONST. These macros all "change syntax" but that's acceptable when there is no reasonable alternative using ordinary C syntax. So UNINIT is not doing anything unique here; it's got company.



reply via email to

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