Does anyone still feel strongly about -Wdeclaration-after-statement ?

Olivier Fourdan ofourdan at redhat.com
Wed Jul 31 11:57:40 UTC 2024


Hey,

On Mon, Jul 29, 2024 at 2:49 AM Alan Coopersmith <
alan.coopersmith at oracle.com> wrote:

> […]
> Do we want to keep insisting on this as part of our style, or have people
> gotten used to it from other languages/projects now and are willing to
> accept it in X.Org code?
>

I reckon having the declarations at the beginning of the block helps make
the code clearer and easier to read, so I, for one, am quite in favor of
keeping this requirement in place.

Just because we can doesn't mean we should break that coding style :)

Cheers
Olivier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.x.org/archives/xorg-devel/attachments/20240731/39afc862/attachment.htm>


More information about the xorg-devel mailing list