[clutter] build: Some warnings should always stop compilation



commit 81cbb33cc5fed835ff4af8a8bacc366809d628dd
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Sun Jul 29 13:53:06 2012 +0100

    build: Some warnings should always stop compilation
    
    Not every single one, but things that we care about to avoid breaking
    build on other platforms, or for security issues, should not be allowed.
    
    We should not force everyone to use -Werror, though; and we should still
    allow building Clutter without any special flag.

 configure.ac |   19 +++++++++++++------
 1 files changed, 13 insertions(+), 6 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 91b74a3..a824b40 100644
--- a/configure.ac
+++ b/configure.ac
@@ -920,13 +920,20 @@ AC_ARG_ENABLE([maintainer-flags],
               [enable_maintainer_flags=maintainer_flags_default])
 
 MAINTAINER_COMPILER_FLAGS="$MAINTAINER_COMPILER_FLAGS
-                           -Wall -Wcast-align -Wuninitialized
-                           -Wno-strict-aliasing -Wempty-body -Wformat
-                           -Wformat-security -Wformat-nonliteral -Winit-self
-                           -Wdeclaration-after-statement -Wvla
-                           -Wpointer-arith -Wmissing-declarations
+                           -Wall
                            -Wcast-align
-                           -Wredundant-decls"
+                           -Wuninitialized
+                           -Wno-strict-aliasing
+                           -Werror=pointer-arith
+                           -Werror=missing-declarations
+                           -Werror=redundant-decls
+                           -Werror=empty-body
+                           -Werror=format
+                           -Werror=format-security
+                           -Werror=format-nonliteral
+                           -Werror=init-self
+                           -Werror=declaration-after-statement
+                           -Werror=vla"
 
 AS_CASE([$enable_maintainer_flags],
         [yes],



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