aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2013-04-27 22:07:46 +0300
committerLasse Collin <lasse.collin@tukaani.org>2013-06-26 10:53:57 +0300
commit32be621f52f2e1686db88baa7b01dc1ae338f426 (patch)
treed12513c7a448510b926390bbc4fd89452a02d6aa /configure.ac
parentxzdec: Improve the --help message. (diff)
downloadxz-32be621f52f2e1686db88baa7b01dc1ae338f426.tar.xz
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.
Diffstat (limited to '')
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 550f0e9f..d80ec6fe 100644
--- a/configure.ac
+++ b/configure.ac
@@ -560,6 +560,7 @@ if test "$GCC" = yes ; then
for NEW_FLAG in \
-Wall \
-Wextra \
+ -Wvla \
-Wformat=2 \
-Winit-self \
-Wmissing-include-dirs \