Re: [PATCH v5 0/2] Remove false-positive VLAs when using max()

From: Linus Torvalds
Date: Mon Mar 19 2018 - 19:29:47 EST


On Mon, Mar 19, 2018 at 2:43 AM, David Laight <David.Laight@xxxxxxxxxx> wrote:
>
> Is it necessary to have the full checks for old versions of gcc?
>
> Even -Wvla could be predicated on very recent gcc - since we aren't
> worried about whether gcc decides to generate a vla, but whether
> the source requests one.

You are correct. We could just ignore the issue with old gcc versions,
and disable -Wvla rather than worry about it.

Linus