Commit 56e8727e authored by Stephen Morris's avatar Stephen Morris
Browse files

[master] Fix logger tests build problem using clang

Change reviewed on Jabber.
parent 137e70ef
...@@ -27,6 +27,10 @@ run_unittests_SOURCES += log_formatter_unittest.cc ...@@ -27,6 +27,10 @@ run_unittests_SOURCES += log_formatter_unittest.cc
run_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) $(LOG4CPLUS_INCLUDES) run_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) $(LOG4CPLUS_INCLUDES)
run_unittests_LDFLAGS = $(AM_LDFLAGS) $(GTEST_LDFLAGS) run_unittests_LDFLAGS = $(AM_LDFLAGS) $(GTEST_LDFLAGS)
run_unittests_CXXFLAGS = $(AM_CXXFLAGS)
if USE_CLANGPP
run_unittests_CXXFLAGS += -Wno-error=unused-parameter
endif
run_unittests_LDADD = $(GTEST_LDADD) run_unittests_LDADD = $(GTEST_LDADD)
run_unittests_LDADD += $(top_builddir)/src/lib/log/liblog.la run_unittests_LDADD += $(top_builddir)/src/lib/log/liblog.la
run_unittests_LDADD += $(top_builddir)/src/lib/util/unittests/libutil_unittests.la run_unittests_LDADD += $(top_builddir)/src/lib/util/unittests/libutil_unittests.la
...@@ -35,6 +39,10 @@ endif ...@@ -35,6 +39,10 @@ endif
TESTS += logger_support_test TESTS += logger_support_test
logger_support_test_SOURCES = logger_support_test.cc logger_support_test_SOURCES = logger_support_test.cc
logger_support_test_CPPFLAGS = $(AM_CPPFLAGS) logger_support_test_CPPFLAGS = $(AM_CPPFLAGS)
logger_support_test_CXXFLAGS = $(AM_CXXFLAGS)
if USE_CLANGPP
logger_support_test_CXXFLAGS += -Wno-error=unused-parameter
endif
logger_support_test_LDFLAGS = $(AM_LDFLAGS) logger_support_test_LDFLAGS = $(AM_LDFLAGS)
logger_support_test_LDADD = $(top_builddir)/src/lib/log/liblog.la logger_support_test_LDADD = $(top_builddir)/src/lib/log/liblog.la
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment