[cfe-dev] -Wvla triggered even for C99 code

Joerg Sonnenberger via cfe-dev cfe-dev at lists.llvm.org
Fri Dec 4 08:13:19 PST 2015

On Wed, Dec 02, 2015 at 03:33:57PM -0000, Michael Weller (BLOOMBERG/ LONDON) via cfe-dev wrote:
> According to my understanding, variable-length arrays were added in C99,
> yet clang warns on their use via the -Wvla warning:

Correct. If you use it pre-C99, -Wvla-extension would (also) trigger.
Now why that warning is not part of -Wall, I don't know. There are
various policies that prohibit use of VLAs, that's why the option


More information about the cfe-dev mailing list