mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-27 15:49:25 +00:00
autotools: default to -Wvla -std=gnu11
We can't really support anything less than gcc-4.8 anyway. Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
dd94de5a87
commit
81a56e8029
@ -656,11 +656,8 @@ AC_PROG_SED
|
|||||||
# See if we support thread-local storage.
|
# See if we support thread-local storage.
|
||||||
LXC_CHECK_TLS
|
LXC_CHECK_TLS
|
||||||
|
|
||||||
if test "x$GCC" = "xyes"; then
|
if test "x$enable_werror" = "xyes"; then
|
||||||
CFLAGS="$CFLAGS -Wall"
|
CFLAGS="$CFLAGS -Werror -Wvla -std=gnu11"
|
||||||
if test "x$enable_werror" = "xyes"; then
|
|
||||||
CFLAGS="$CFLAGS -Werror"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Files requiring some variable expansion
|
# Files requiring some variable expansion
|
||||||
|
Loading…
Reference in New Issue
Block a user