summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid King <amigadave@amigadave.com>2012-03-09 17:50:52 +0000
committerOleksij Rempel <bug-track@fisher-privat.net>2012-03-24 09:33:00 +0100
commitd5814b22cd48b79ac572450c09817e50ee0eb395 (patch)
treeb2f098ea86c8578cb49984369b80e63b8bea58c5
parent39f3a8c91d56ce99da428b583c9559e01f4e6458 (diff)
downloadcheese-d5814b22cd48b79ac572450c09817e50ee0eb395.tar.gz
Move variable declarations before code in C source
This allows compilation to succeed with ‘-Wdeclaration-after-statement -Werror=declaration-after-statement’ passed to GCC.
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index b04e32d2..f6f95f18 100644
--- a/configure.ac
+++ b/configure.ac
@@ -26,7 +26,7 @@ LT_INIT([disable-static])
PKG_PROG_PKG_CONFIG([0.24])
-AC_SUBST([CHEESE_WFLAGS], ["-Wall -DGSEAL_ENABLE"])
+AC_SUBST([CHEESE_WFLAGS], ["-Wall -Wdeclaration-after-statement -DGSEAL_ENABLE"])
GNOME_MAINTAINER_MODE_DEFINES
GNOME_COMPILE_WARNINGS([maximum])