Adding such comments was discussed and agreed on jabber with Jinmei.
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
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
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
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
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
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)
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
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