[Top][All Lists]

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

Re: Suspicious warning in W64 build

From: Eli Zaretskii
Subject: Re: Suspicious warning in W64 build
Date: Mon, 18 Sep 2017 17:41:32 +0300

> Cc: address@hidden, address@hidden,
>  address@hidden
> From: Paul Eggert <address@hidden>
> Date: Sun, 17 Sep 2017 21:52:04 -0700
> 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 is here, because:

> > 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.

It expands into an assignment, so it's an assignment.

> 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.

ATTRIBUTE_* is bad enough already, but at least it expands to
something very similar, so syntactically it's better than UNINIT.

reply via email to

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