summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2011-12-20 16:32:06 +0000
committerMans Rullgard <mans@mansr.com>2011-12-21 00:57:46 +0000
commit9d6b2077b27980936efdc616e2f9c92a56b443fc (patch)
tree6df7a482c69401e386efdc5776b1d42efeeba6fa /configure
parent514294e8cab7ab70e69f686a84e7cc6f1192961c (diff)
build: error on mixed declarations and code
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 180578db7e..5cb2d1c0ae 100755
--- a/configure
+++ b/configure
@@ -3118,6 +3118,7 @@ elif enabled gcc; then
check_cflags -fno-tree-vectorize
check_cflags -Werror=implicit-function-declaration
check_cflags -Werror=missing-prototypes
+ check_cflags -Werror=declaration-after-statement
elif enabled llvm_gcc; then
check_cflags -mllvm -stack-alignment=16
elif enabled clang; then