]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
autotools: default to -Wvla -std=gnu11 2493/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 26 Jul 2018 11:38:21 +0000 (13:38 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Thu, 26 Jul 2018 14:38:42 +0000 (16:38 +0200)
We can't really support anything less than gcc-4.8 anyway.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
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