]> git.proxmox.com Git - mirror_lxc.git/blobdiff - configure.ac
autotools: default to -Wvla -std=gnu11
[mirror_lxc.git] / configure.ac
index f1811205f0883a8db033e78c5d38aab6bdc50150..837d018e37d8d04e8e32614eca2e7da40101b9f3 100644 (file)
@@ -656,11 +656,8 @@ AC_PROG_SED
 # See if we support thread-local storage.
 LXC_CHECK_TLS
 
-if test "x$GCC" = "xyes"; then
-       CFLAGS="$CFLAGS -Wall"
-       if test "x$enable_werror" = "xyes"; then
-               CFLAGS="$CFLAGS -Werror"
-       fi
+if test "x$enable_werror" = "xyes"; then
+       CFLAGS="$CFLAGS -Werror -Wvla -std=gnu11"
 fi
 
 # Files requiring some variable expansion