OSDN Git Service

build: error on variable-length arrays
authorMans Rullgard <mans@mansr.com>
Wed, 3 Oct 2012 22:00:44 +0000 (23:00 +0100)
committerMans Rullgard <mans@mansr.com>
Fri, 5 Oct 2012 21:33:32 +0000 (22:33 +0100)
With all the VLAs gone, make sure they never come back.

Signed-off-by: Mans Rullgard <mans@mansr.com>
configure

index cd72f36..34680d4 100755 (executable)
--- 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