From: Christian Brauner Date: Thu, 26 Jul 2018 11:38:21 +0000 (+0200) Subject: autotools: default to -Wvla -std=gnu11 X-Git-Tag: lxc-3.1.0~191^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81a56e8029e5c6815ed3ac9835a1d3822a22dae0;p=thirdparty%2Flxc.git autotools: default to -Wvla -std=gnu11 We can't really support anything less than gcc-4.8 anyway. Signed-off-by: Christian Brauner --- diff --git a/configure.ac b/configure.ac index f1811205f..837d018e3 100644 --- a/configure.ac +++ b/configure.ac @@ -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