mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
Build: Use -Wvla with GCC if supported.
Variable-length arrays are mandatory in C99 but optional in C11. The code doesn't currently use any VLAs and it shouldn't in the future either to stay compatible with C11 without requiring any optional C11 features.
This commit is contained in:
parent
efb07cfba6
commit
32be621f52
1 changed files with 1 additions and 0 deletions
|
@ -560,6 +560,7 @@ if test "$GCC" = yes ; then
|
|||
for NEW_FLAG in \
|
||||
-Wall \
|
||||
-Wextra \
|
||||
-Wvla \
|
||||
-Wformat=2 \
|
||||
-Winit-self \
|
||||
-Wmissing-include-dirs \
|
||||
|
|
Loading…
Reference in a new issue