Unverified Commit 1ea1496d by Christian Brauner Committed by GitHub

Merge pull request #2594 from ffontaine/master

lxc: fix build with --disable-werror
parents 0b26d75e 218e8144
......@@ -53,7 +53,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#define CLANG_VERSION \
(__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__)
#if GCC_VERSION < 40600 && CLANG_VERSION < 10000
#if GCC_VERSION < 40700 && CLANG_VERSION < 10000
#error Sorry, your compiler is too old - please upgrade it
#endif
]])], [valid_compiler=yes], [valid_compiler=no])
......@@ -683,8 +683,9 @@ AC_PROG_SED
# See if we support thread-local storage.
LXC_CHECK_TLS
CFLAGS="$CFLAGS -Wvla -std=gnu11"
if test "x$enable_werror" = "xyes"; then
CFLAGS="$CFLAGS -Werror -Wvla -std=gnu11"
CFLAGS="$CFLAGS -Werror"
fi
AC_ARG_ENABLE([thread-safety],
......
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