From: Marcin Siodelski Date: Wed, 13 Jun 2012 12:02:43 +0000 (+0200) Subject: [master] Added comment about unused-parameter warning disabling for clang. X-Git-Tag: trac2351_base~226^2~55 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3430cd41631b026665fe7b01bd12740e2fee9d9b;p=thirdparty%2Fkea.git [master] Added comment about unused-parameter warning disabling for clang. Adding such comments was discussed and agreed on jabber with Jinmei. --- diff --git a/src/bin/dhcp4/Makefile.am b/src/bin/dhcp4/Makefile.am index 8c804d64b5..704642f51e 100644 --- a/src/bin/dhcp4/Makefile.am +++ b/src/bin/dhcp4/Makefile.am @@ -33,6 +33,8 @@ pkglibexec_PROGRAMS = b10-dhcp4 b10_dhcp4_SOURCES = main.cc dhcp4_srv.cc dhcp4_srv.h if USE_CLANGPP +# Disable unused parameter warning caused by some of the +# Boost headers when compiling with clang. b10_dhcp4_CXXFLAGS = -Wno-unused-parameter endif diff --git a/src/bin/dhcp4/tests/Makefile.am b/src/bin/dhcp4/tests/Makefile.am index 187e01b844..07de39362a 100644 --- a/src/bin/dhcp4/tests/Makefile.am +++ b/src/bin/dhcp4/tests/Makefile.am @@ -48,6 +48,8 @@ dhcp4_unittests_SOURCES += dhcp4_unittests.cc dhcp4_unittests_SOURCES += dhcp4_srv_unittest.cc if USE_CLANGPP +# Disable unused parameter warning caused by some of the +# Boost headers when compiling with clang. dhcp4_unittests_CXXFLAGS = -Wno-unused-parameter endif diff --git a/src/bin/dhcp6/Makefile.am b/src/bin/dhcp6/Makefile.am index 7da82070de..16b17eddf8 100644 --- a/src/bin/dhcp6/Makefile.am +++ b/src/bin/dhcp6/Makefile.am @@ -35,6 +35,8 @@ pkglibexec_PROGRAMS = b10-dhcp6 b10_dhcp6_SOURCES = main.cc dhcp6_srv.cc dhcp6_srv.h if USE_CLANGPP +# Disable unused parameter warning caused by some of the +# Boost headers when compiling with clang. b10_dhcp6_CXXFLAGS = -Wno-unused-parameter endif diff --git a/src/bin/dhcp6/tests/Makefile.am b/src/bin/dhcp6/tests/Makefile.am index ee98049f7e..c1a8f3c3c8 100644 --- a/src/bin/dhcp6/tests/Makefile.am +++ b/src/bin/dhcp6/tests/Makefile.am @@ -44,6 +44,8 @@ dhcp6_unittests_SOURCES += dhcp6_unittests.cc dhcp6_unittests_SOURCES += dhcp6_srv_unittest.cc if USE_CLANGPP +# Disable unused parameter warning caused by some of the +# Boost headers when compiling with clang. dhcp6_unittests_CXXFLAGS = -Wno-unused-parameter endif diff --git a/src/lib/dhcp/Makefile.am b/src/lib/dhcp/Makefile.am index 05b863e276..dc1545baba 100644 --- a/src/lib/dhcp/Makefile.am +++ b/src/lib/dhcp/Makefile.am @@ -39,5 +39,7 @@ libdhcp___la_LIBADD += $(top_builddir)/src/lib/util/libutil.la libdhcp___la_LDFLAGS = -no-undefined -version-info 1:0:0 if USE_CLANGPP +# Disable unused parameter warning caused by some of the +# Boost headers when compiling with clang. libdhcp___la_CXXFLAGS += -Wno-unused-parameter endif diff --git a/src/lib/dhcp/tests/Makefile.am b/src/lib/dhcp/tests/Makefile.am index 20f712535f..4c86ee7253 100644 --- a/src/lib/dhcp/tests/Makefile.am +++ b/src/lib/dhcp/tests/Makefile.am @@ -44,7 +44,8 @@ libdhcp___unittests_CXXFLAGS = $(AM_CXXFLAGS) if USE_CLANGPP # This is to workaround unused variables tcout and tcerr in -# log4cplus's streams.h and unused parameters from boost::posix_time. +# log4cplus's streams.h and unused parameters from some of the +# Boost headers. libdhcp___unittests_CXXFLAGS += -Wno-unused-variable -Wno-unused-parameter endif libdhcp___unittests_LDADD = $(GTEST_LDADD) diff --git a/tests/tools/perfdhcp/Makefile.am b/tests/tools/perfdhcp/Makefile.am index 6b3ea248bd..6ebc00f92a 100644 --- a/tests/tools/perfdhcp/Makefile.am +++ b/tests/tools/perfdhcp/Makefile.am @@ -27,6 +27,8 @@ libperfdhcp___la_SOURCES += pkt_transform.cc pkt_transform.h libperfdhcp___la_CXXFLAGS = $(AM_CXXFLAGS) if USE_CLANGPP +# Disable unused parameter warning caused by some of the +# Boost headers when compiling with clang. libperfdhcp___la_CXXFLAGS += -Wno-unused-parameter endif diff --git a/tests/tools/perfdhcp/tests/Makefile.am b/tests/tools/perfdhcp/tests/Makefile.am index 3147feaf1e..d4034b391a 100644 --- a/tests/tools/perfdhcp/tests/Makefile.am +++ b/tests/tools/perfdhcp/tests/Makefile.am @@ -27,6 +27,8 @@ run_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) run_unittests_LDFLAGS = $(AM_LDFLAGS) $(GTEST_LDFLAGS) if USE_CLANGPP +# Disable unused parameter warning caused by some of the +# Boost headers when compiling with clang. run_unittests_CXXFLAGS = -Wno-unused-parameter endif