From ed4a30b38311e4ce0730ecd6026432f4a1e8ddf7 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 10 Feb 2010 22:10:23 +0100 Subject: 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. --- build/configure.ac.warnings | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build') diff --git a/build/configure.ac.warnings b/build/configure.ac.warnings index 212f8a067..5b561e14e 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 \ -- cgit v1.2.3