summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-02-10 22:10:23 +0100
committerBenjamin Otte <otte@redhat.com>2010-02-10 22:13:33 +0100
commited4a30b38311e4ce0730ecd6026432f4a1e8ddf7 (patch)
tree6aca027781d4522e093939afdc061f3d977eb72c /build
parent4113e455a317785b83324215a6b0156995665989 (diff)
build: Add -Wdeclaration-after-statement
... and fix the compile errors from it I get on my build. It's Cairo style to put declarations before the code, so better warn about it. Besides, it eases porting to old compilers like MSVC.
Diffstat (limited to 'build')
-rw-r--r--build/configure.ac.warnings2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/configure.ac.warnings b/build/configure.ac.warnings
index 212f8a06..5b561e14 100644
--- a/build/configure.ac.warnings
+++ b/build/configure.ac.warnings
@@ -9,7 +9,7 @@ dnl MAYBE_WARN in an ignorable way (like adding whitespace)
# cast image data from uint8_t to uin32_t.
MAYBE_WARN="-Wall -Wextra \
--Wold-style-definition \
+-Wold-style-definition -Wdeclaration-after-statement \
-Wmissing-declarations -Werror-implicit-function-declaration \
-Wnested-externs -Wpointer-arith -Wwrite-strings \
-Wsign-compare -Wstrict-prototypes -Wmissing-prototypes \