Browse Source

[master] Added comment about unused-parameter warning disabling for clang.

Adding such comments was discussed and agreed on jabber with Jinmei.
Marcin Siodelski 13 years ago
parent
commit
3430cd4163

+ 2 - 0
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
 

+ 2 - 0
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
 

+ 2 - 0
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
 

+ 2 - 0
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
 

+ 2 - 0
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

+ 2 - 1
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)

+ 2 - 0
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
 

+ 2 - 0
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