bug-bash
[Top][All Lists]
Advanced

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

Re: Bash Coding style - Adopting C99 declarations


From: Martin D Kealey
Subject: Re: Bash Coding style - Adopting C99 declarations
Date: Mon, 29 Aug 2022 12:57:10 +1000

On Mon, 29 Aug 2022 at 09:14, Dmitry Goncharov <dgoncharov@users.sf.net>
wrote:

> On Sunday, August 28, 2022, Andreas Schwab <schwab@linux-m68k.org> wrote:
> > Note that the next revision of the C standard removes support for K&R
> > declarations
>
> The code will continue to compile, won't it?
>

I expect "gcc -std=c23" will reject such code.

Of course, compilers are unlikely to remove their compatibility modes any
time soon, but I would hate to be stuck in a position of requiring "gcc
-std=gnu23" to get both new *and* obsolete features at the same time.

-Martin


reply via email to

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