[gnome-common] compiler-warnings: Fix tabs->spaces
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-common] compiler-warnings: Fix tabs->spaces
- Date: Tue, 13 Nov 2012 19:50:29 +0000 (UTC)
commit a550d04a1b3552373f882f1482166c942e490451
Author: Colin Walters <walters verbum org>
Date: Tue Nov 13 13:17:00 2012 -0500
compiler-warnings: Fix tabs->spaces
Per https://bugzilla.gnome.org/show_bug.cgi?id=688192
macros2/gnome-compiler-flags.m4 | 38 +++++++++++++++++++-------------------
1 files changed, 19 insertions(+), 19 deletions(-)
---
diff --git a/macros2/gnome-compiler-flags.m4 b/macros2/gnome-compiler-flags.m4
index c190137..4cb24aa 100644
--- a/macros2/gnome-compiler-flags.m4
+++ b/macros2/gnome-compiler-flags.m4
@@ -23,8 +23,8 @@ AC_DEFUN([GNOME_COMPILE_WARNINGS],[
dnl overridden on a per-project basis with -Wno-foo.
base_warn_flags=" \
-Wall \
- -Wstrict-prototypes \
- -Wnested-externs \
+ -Wstrict-prototypes \
+ -Wnested-externs \
"
dnl These compiler flags typically indicate very broken or suspicious
@@ -32,31 +32,31 @@ AC_DEFUN([GNOME_COMPILE_WARNINGS],[
dnl just not default because gcc compiles a lot of legacy code.
dnl We choose to make this set into explicit errors.
base_error_flags=" \
- -Werror=missing-prototypes \
- -Werror=implicit-function-declaration \
- -Werror=pointer-arith \
- -Werror=init-self \
- -Werror=format-security \
- -Werror=format=2 \
- -Werror=missing-include-dirs \
+ -Werror=missing-prototypes \
+ -Werror=implicit-function-declaration \
+ -Werror=pointer-arith \
+ -Werror=init-self \
+ -Werror=format-security \
+ -Werror=format=2 \
+ -Werror=missing-include-dirs \
"
case "$enable_compile_warnings" in
no)
- warning_flags=
- ;;
+ warning_flags=
+ ;;
minimum)
- warning_flags="-Wall"
- ;;
+ warning_flags="-Wall"
+ ;;
yes)
- warning_flags="$base_warn_flags $base_error_flags"
- ;;
+ warning_flags="$base_warn_flags $base_error_flags"
+ ;;
maximum|error)
- warning_flags="$base_warn_flags $base_error_flags"
- ;;
+ warning_flags="$base_warn_flags $base_error_flags"
+ ;;
*)
- AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
- ;;
+ AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
+ ;;
esac
if test "$enable_compile_warnings" = "error" ; then
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]