bug-texinfo
[Top][All Lists]
Advanced

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

Re: ISO C99 mixed declaration and statements


From: Bruno Haible
Subject: Re: ISO C99 mixed declaration and statements
Date: Fri, 18 Aug 2023 16:29:16 +0200

Gavin Smith wrote:
> It may have been some MS-Windows compiler (MSVC?) that didn't support it,

Yes, I too have some recollection of MSVC (9 perhaps?) not supporting it.
But since MSVC 14 (released in 2015) there is no problem any more.

> I am going to take out the recommendation that we check for this with
> compiler warnings as this would simplify things.

Not only it simplifies things. It also makes it easier to reduce the
scope of local variables, which makes the code easier to read. Take
this patch, for example:
https://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=1ea34cbf6a235f2436a3265ab9ded6f04748051e

Bruno






reply via email to

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