[cheese/camerabin2: 3/24] Move variable declarations before code in C source



commit d5814b22cd48b79ac572450c09817e50ee0eb395
Author: David King <amigadave amigadave com>
Date:   Fri Mar 9 17:50:52 2012 +0000

    Move variable declarations before code in C source
    
    This allows compilation to succeed with
    â-Wdeclaration-after-statement -Werror=declaration-after-statementâ
    passed to GCC.

 configure.ac |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index b04e32d..f6f95f1 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])



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]