From 81a56e8029e5c6815ed3ac9835a1d3822a22dae0 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Thu, 26 Jul 2018 13:38:21 +0200 Subject: [PATCH] autotools: default to -Wvla -std=gnu11 We can't really support anything less than gcc-4.8 anyway. Signed-off-by: Christian Brauner --- configure.ac | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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