diff options
author | Michael Catanzaro <mcatanzaro@gnome.org> | 2014-08-17 18:00:17 -0500 |
---|---|---|
committer | Michael Catanzaro <mcatanzaro@gnome.org> | 2014-08-18 08:43:44 -0500 |
commit | cdb06bca3101ef09a207deb290bd607ec128e04b (patch) | |
tree | 1d48e7bf08bebb765df596c12f3de649357d6d56 | |
parent | 13d01a8be18642956042f00321dece2cfe5493f1 (diff) | |
download | gnome-common-cdb06bca3101ef09a207deb290bd607ec128e04b.tar.gz |
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
-rw-r--r-- | 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" |