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
8957c58609
commit
97379c5ea7
|
@ -653,6 +653,7 @@ if test "$GCC" = yes ; then
|
||||||
for NEW_FLAG in \
|
for NEW_FLAG in \
|
||||||
-Wall \
|
-Wall \
|
||||||
-Wextra \
|
-Wextra \
|
||||||
|
-Wvla \
|
||||||
-Wformat=2 \
|
-Wformat=2 \
|
||||||
-Winit-self \
|
-Winit-self \
|
||||||
-Wmissing-include-dirs \
|
-Wmissing-include-dirs \
|
||||||
|
|
Loading…
Reference in New Issue