[evolution-ews] Bug 653157 - Enable extra compiler warnings in maintainer mode only
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Bug 653157 - Enable extra compiler warnings in maintainer mode only
- Date: Mon, 29 Sep 2014 11:28:39 +0000 (UTC)
commit 3dc6dd369fcc94c7f8651b8382ff85d11c7b4dd3
Author: Milan Crha <mcrha redhat com>
Date: Mon Sep 29 13:28:51 2014 +0200
Bug 653157 - Enable extra compiler warnings in maintainer mode only
The 'extra' means also deprecated warnings. Those are not interesting
for non-developers.
configure.ac | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 9d0e49f..817c00d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -113,15 +113,22 @@ AC_SUBST(LIBM)
dnl ***********************
dnl Compiler Warning Flags
dnl ***********************
+proposed_warning_flags=
+
+if test "x$enable_maintainer_mode" = "xyes" ; then
+ proposed_warning_flags="-Wall -Wextra -Wdeprecated-declarations"
+else
+ proposed_warning_flags="-Wno-deprecated-declarations"
+fi
+
AS_COMPILER_FLAGS(WARNING_FLAGS,
- "-Wall -Wextra
- -Wdeprecated-declarations
+ "$proposed_warning_flags
-Wno-missing-field-initializers
-Wno-sign-compare
-Wno-unused-parameter
-Wdeclaration-after-statement
-Werror-implicit-function-declaration
- -Wformat-nonliteral -Wformat-security -Winit-self
+ -Wformat -Wformat-nonliteral -Wformat-security -Winit-self
-Wmissing-declarations -Wmissing-include-dirs
-Wmissing-noreturn -Wnested-externs -Wpointer-arith
-Wundef -Wwrite-strings")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]