3 ms·
> Warn about any use of stack-allocated variable length arrays. Unfortunately, it warns about all VLA, not only stack allocated ones. What you might want is r
by Jorengarenar 3y ago
> Warn about any use of stack-allocated variable length arrays.
Unfortunately, it warns about all VLA, not only stack allocated ones.
What you might want is rather:
-Wvla-larger-than=0
This flag will indeed report only automatic VLA (but for some reason only if optimizations are turned on [1]).
[1]: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109395 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109395