[network-manager-pptp] build: turn off set-but-not-used variable warnings in new gcc
- From: Jiří Klimeš <jklimes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-pptp] build: turn off set-but-not-used variable warnings in new gcc
- Date: Fri, 11 Feb 2011 13:38:21 +0000 (UTC)
commit 6bf193bec9997ec4e9ecf5254bbeec7fd6c66224
Author: JiÅ?à KlimeÅ¡ <jklimes redhat com>
Date: Fri Feb 11 14:38:02 2011 +0100
build: turn off set-but-not-used variable warnings in new gcc
m4/compiler_warnings.m4 | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/m4/compiler_warnings.m4 b/m4/compiler_warnings.m4
index 6cea2f7..be69af2 100644
--- a/m4/compiler_warnings.m4
+++ b/m4/compiler_warnings.m4
@@ -10,7 +10,7 @@ if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
for option in -Wshadow -Wmissing-declarations -Wmissing-prototypes \
-Wdeclaration-after-statement -Wstrict-prototypes \
-Wfloat-equal -Wno-unused-parameter -Wno-sign-compare \
- -fno-strict-aliasing; do
+ -fno-strict-aliasing -Wno-unused-but-set-variable; do
SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $option"
AC_MSG_CHECKING([whether gcc understands $option])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]