[gnome-common] compiler-flags: allow suppressing warnings
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-common] compiler-flags: allow suppressing warnings
- Date: Mon, 18 Aug 2014 13:43:56 +0000 (UTC)
commit cdb06bca3101ef09a207deb290bd607ec128e04b
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sun Aug 17 18:00:17 2014 -0500
compiler-flags: allow suppressing warnings
Some projects want to see no warnings at all, for example, projects that
are written in Vala. But GNOME_COMPILE_WARNINGS([no]) is a no-op that
does nothing to turn off the default compiler warnings. Presumably if
you ask for no compiler warnings, you want no compiler warnings, so
suppress them in this case instead.
https://bugzilla.gnome.org/show_bug.cgi?id=734973
macros2/gnome-compiler-flags.m4 | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/macros2/gnome-compiler-flags.m4 b/macros2/gnome-compiler-flags.m4
index cd1a0f5..2261949 100644
--- a/macros2/gnome-compiler-flags.m4
+++ b/macros2/gnome-compiler-flags.m4
@@ -58,7 +58,7 @@ AC_DEFUN([GNOME_COMPILE_WARNINGS],[
case "$enable_compile_warnings" in
no)
- warning_flags=
+ warning_flags="-w"
;;
minimum)
warning_flags="-Wall"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]