[unique] build: Fix help string for --enable-maintainer-flags



commit 7627289654c4284ffdac29b5ff4f6967db8dd149
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Sun Mar 27 09:53:11 2011 +0100

    build: Fix help string for --enable-maintainer-flags
    
    Since the default of the setting depends on the version of the library,
    it should not be hardcoded.
    
    Also, the maintainer flags have not yet been updated to a reasonable set.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=620017

 configure.ac |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index e52f0f2..fba423f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -181,20 +181,21 @@ AS_IF([test "x$have_gdbus" = "xyes"],
 
 AC_SUBST(UNIQUE_DEFAULT_BACKEND)
 
-# use strict compiler flags only on development releases
+# use strict compiler flags only during development cycles
 m4_define([maintainer_flags_default], [m4_if(m4_eval(unique_minor_version % 2), [1], [yes], [no])])
 AC_ARG_ENABLE([maintainer-flags],
               [AC_HELP_STRING([--enable-maintainer-flags=@<:@no/yes@:>@],
-                              [Use strict compiler flags @<:@default=no@:>@])],
+                              [Use strict compiler flags @<:@default=maintainer_flags_default@:>@])],
               [],
               [enable_maintainer_flags=maintainer_flags_default])
 
-AS_IF([test "x$enable_maintainer_flags" = "xyes" &&  test "x$GCC" = "xyes"],
+AS_IF([test "x$enable_maintainer_flags" = "xyes" && test "x$GCC" = "xyes"],
       [
         AS_COMPILER_FLAGS([MAINTAINER_CFLAGS],
-                          ["-Wall -Wshadow -Wcast-align
-                            -Wno-uninitialized -Wempty-body
-                            -Wformat-security -Winit-self"])
+                          ["-Wall -Wshadow -Wcast-align -Wuninitialized
+                            -Wno-strict-aliasing -Wempty-body -Wformat
+                            -Wformat-security -Winit-self
+                            -Wdeclaration-after-statement -Wvla"])
       ]
 )
 



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