autotools: default to -Wvla -std=gnu11

We can't really support anything less than gcc-4.8 anyway. Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 0c127b6e
......@@ -648,11 +648,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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment