[aisleriot] build: Add warning flags to AM_CFLAGS not CFLAGS
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [aisleriot] build: Add warning flags to AM_CFLAGS not CFLAGS
- Date: Mon, 16 Jan 2012 17:50:40 +0000 (UTC)
commit e997f3affc66c04a388a213130a7cffc61c6427d
Author: Christian Persch <chpe gnome org>
Date: Mon Jan 16 18:40:08 2012 +0100
build: Add warning flags to AM_CFLAGS not CFLAGS
configure.ac | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 4228673..40f5408 100644
--- a/configure.ac
+++ b/configure.ac
@@ -455,6 +455,8 @@ fi
# Compilation
# ***********
+save_CFLAGS="$CFLAGS"
+CFLAGS=
CC_CHECK_CFLAGS_APPEND([ \
-Wall -Wextra \
-Wformat-nonliteral -Werror=format-security \
@@ -466,12 +468,10 @@ CC_CHECK_CFLAGS_APPEND([ \
-Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations \
-Wdeclaration-after-statement -Wold-style-definition \
-Wno-missing-field-initializers -Wno-unused-parameter \
+ -Wempty-body \
-fno-common -Wno-switch-enum])
-
-# ********
-
-AM_CFLAGS="$AM_CFLAGS $WARN_CFLAGS"
-AM_CXXFLAGS="$AM_CXXFLAGS $WARN_CXXFLAGS"
+AM_CFLAGS="$AM_CFLAGS $CFLAGS"
+CFLAGS="$save_CFLAGS"
# ****
# i18n
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]