[prev in list] [next in list] [prev in thread] [next in thread]
List: openvswitch-dev
Subject: [ovs-dev] [GCC 4.4 1/2] sflow: Avoid "unused parameter" warnings from GCC 4.4.
From: blp () nicira ! com (Ben Pfaff)
Date: 2010-07-30 21:55:47
Message-ID: 1280526948-15159-1-git-send-email-blp () nicira ! com
[Download RAW message or body]
With GCC -Wno-unused by itself isn't enough to avoid "unused parameter"
warnings, since we also use -Wunused-parameter. We also need to check for
and use -Wno-unused-parameter.
---
configure.ac | 1 +
lib/automake.mk | 3 +++
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
index dad2fb9..04ffe6e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -86,6 +86,7 @@ OVS_ENABLE_OPTION([-Wmissing-prototypes])
OVS_ENABLE_OPTION([-Wmissing-field-initializers])
OVS_ENABLE_OPTION([-Wno-override-init])
OVS_CONDITIONAL_CC_OPTION([-Wno-unused], [HAVE_WNO_UNUSED])
+OVS_CONDITIONAL_CC_OPTION([-Wno-unused-parameter], [HAVE_WNO_UNUSED_PARAMETER])
AC_ARG_VAR(KARCH, [Kernel Architecture String])
AC_SUBST(KARCH)
diff --git a/lib/automake.mk b/lib/automake.mk
index 0588eea..49f4e2c 100644
--- a/lib/automake.mk
+++ b/lib/automake.mk
@@ -168,6 +168,9 @@ lib_libsflow_a_CFLAGS = $(AM_CFLAGS)
if HAVE_WNO_UNUSED
lib_libsflow_a_CFLAGS += -Wno-unused
endif
+if HAVE_WNO_UNUSED_PARAMETER
+lib_libsflow_a_CFLAGS += -Wno-unused-parameter
+endif
if HAVE_NETLINK
lib_libopenvswitch_a_SOURCES += \
--
1.7.1
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic