]> granicus.if.org Git - xz/commitdiff
Build: Use -Wvla with GCC if supported.
authorLasse Collin <lasse.collin@tukaani.org>
Sat, 27 Apr 2013 19:07:46 +0000 (22:07 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Wed, 26 Jun 2013 07:53:57 +0000 (10:53 +0300)
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.

configure.ac

index 550f0e9f26fb08969fd863f656df1ba683aa1ca9..d80ec6fe525ddd69f9e4a2dc9b0b0cfc895a5d65 100644 (file)
@@ -560,6 +560,7 @@ if test "$GCC" = yes ; then
        for NEW_FLAG in \
                        -Wall \
                        -Wextra \
+                       -Wvla \
                        -Wformat=2 \
                        -Winit-self \
                        -Wmissing-include-dirs \