Skip to content

Commit

Permalink
autotools: default to -Wvla -std=gnu11
Browse files Browse the repository at this point in the history
We can't really support anything less than gcc-4.8 anyway.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Jul 31, 2018
1 parent 0c127b6 commit d53959f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions configure.ac
Expand Up @@ -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
Expand Down

0 comments on commit d53959f

Please sign in to comment.