summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-10-03 23:00:44 +0100
committerMans Rullgard <mans@mansr.com>2012-10-05 22:33:32 +0100
commitc07d56a684372e5001eb6ab927708082f1df9c21 (patch)
tree71776b9fd13f098ca6ab6b3d775c5ef529bcfc80 /configure
parent07eb7e20af63a244d9e1813626fac38a84e8c869 (diff)
build: error on variable-length arrays
With all the VLAs gone, make sure they never come back. Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure b/configure
index cd72f36376..34680d4784 100755
--- a/configure
+++ b/configure
@@ -3504,6 +3504,7 @@ elif enabled gcc; then
check_cflags -Werror=implicit-function-declaration
check_cflags -Werror=missing-prototypes
check_cflags -Werror=declaration-after-statement
+ check_cflags -Werror=vla
elif enabled llvm_gcc; then
check_cflags -mllvm -stack-alignment=16
elif enabled clang; then