[gnome-common] compiler-warnings: cosmetic cleanup: Put each warning on own line



commit 7c70df83511028ce45489193eaf0aa613b3416a7
Author: Colin Walters <walters verbum org>
Date:   Mon Nov 12 12:09:20 2012 -0500

    compiler-warnings: cosmetic cleanup: Put each warning on own line
    
    So that further patches are more readable.

 macros2/gnome-compiler-flags.m4 |   27 +++++++++++++++++++++++++--
 1 files changed, 25 insertions(+), 2 deletions(-)
---
diff --git a/macros2/gnome-compiler-flags.m4 b/macros2/gnome-compiler-flags.m4
index 1dbfa1a..09c4fc0 100644
--- a/macros2/gnome-compiler-flags.m4
+++ b/macros2/gnome-compiler-flags.m4
@@ -27,10 +27,33 @@ AC_DEFUN([GNOME_COMPILE_WARNINGS],[
 	warning_flags="-Wall"
 	;;
     yes)
-	warning_flags="-Wall -Wstrict-prototypes -Waggregate-return -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self -Werror=format-security -Werror=format=2 -Werror=missing-include-dirs"
+	warning_flags="\
+	-Wall \
+ 	-Wstrict-prototypes \
+	-Waggregate-return \
+	-Werror=missing-prototypes \
+	-Werror=implicit-function-declaration \
+	-Werror=pointer-arith \
+	-Werror=init-self \
+	-Werror=format-security \
+	-Werror=format=2 \
+	-Werror=missing-include-dirs"
 	;;
     maximum|error)
-	warning_flags="-Wall -Wstrict-prototypes -Waggregate-return -Wdeclaration-after-statement -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self -Werror=format-security -Werror=format=2 -Werror=missing-include-dirs -Wnested-externs -Wno-sign-compare"
+	warning_flags="\
+	-Wall \
+	-Wstrict-prototypes \
+	-Waggregate-return \
+	-Wdeclaration-after-statement \
+	-Werror=missing-prototypes \
+	-Werror=implicit-function-declaration \
+	-Werror=pointer-arith \
+	-Werror=init-self \
+	-Werror=format-security \
+	-Werror=format=2 \
+	-Werror=missing-include-dirs \
+	-Wnested-externs \
+	-Wno-sign-compare"
 	;;
     *)
 	AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)



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