[cheese/camerabin2: 1/23] Move variable declarations before code in C source



commit 3d426fdd32978920c1008dc1b1d1fe120a4894cd
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 ee74e4d..4aa33e5 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]