mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-09 03:35:20 +00:00
Merge pull request #2594 from ffontaine/master
lxc: fix build with --disable-werror
This commit is contained in:
commit
1ea1496dfd
@ -53,7 +53,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
|||||||
#define CLANG_VERSION \
|
#define CLANG_VERSION \
|
||||||
(__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__)
|
(__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
|
#error Sorry, your compiler is too old - please upgrade it
|
||||||
#endif
|
#endif
|
||||||
]])], [valid_compiler=yes], [valid_compiler=no])
|
]])], [valid_compiler=yes], [valid_compiler=no])
|
||||||
@ -683,8 +683,9 @@ AC_PROG_SED
|
|||||||
# See if we support thread-local storage.
|
# See if we support thread-local storage.
|
||||||
LXC_CHECK_TLS
|
LXC_CHECK_TLS
|
||||||
|
|
||||||
|
CFLAGS="$CFLAGS -Wvla -std=gnu11"
|
||||||
if test "x$enable_werror" = "xyes"; then
|
if test "x$enable_werror" = "xyes"; then
|
||||||
CFLAGS="$CFLAGS -Werror -Wvla -std=gnu11"
|
CFLAGS="$CFLAGS -Werror"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_ARG_ENABLE([thread-safety],
|
AC_ARG_ENABLE([thread-safety],
|
||||||
|
Loading…
Reference in New Issue
Block a user