From 5d19d98e0720ccaf993c45e2997297751a6fc1ba Mon Sep 17 00:00:00 2001 From: Mathias Preiner Date: Thu, 8 Mar 2018 16:03:01 -0800 Subject: Fix Travis for unit test compilation errors. (#1651) make units does not fail if we have compile error for a unit test, however, make check does. -Wsuggest-override is now explicitly disabled for unit tests since CxxTest does not add override keywords to the generated source code and thus get a lot of compiler warnings. Further, this fixes some issues introduced with #1647 due to make units not failing on Travis and fixes the nightly builds. --- test/unit/Makefile.am | 1 + 1 file changed, 1 insertion(+) (limited to 'test/unit/Makefile.am') diff --git a/test/unit/Makefile.am b/test/unit/Makefile.am index 167100ff0..3d5f2702d 100644 --- a/test/unit/Makefile.am +++ b/test/unit/Makefile.am @@ -81,6 +81,7 @@ AM_CPPFLAGS = \ $(TEST_CPPFLAGS) AM_CXXFLAGS = -Wall -Wno-unknown-pragmas -Wno-parentheses $(TEST_CXXFLAGS) AM_LDFLAGS = $(TEST_LDFLAGS) $(READLINE_LIBS) $(LIBS) +CXXFLAGS=-Wno-suggest-override AM_CXXFLAGS_WHITE = -fno-access-control -D__BUILDING_CVC4LIB_UNIT_TEST -D__BUILDING_CVC4PARSERLIB_UNIT_TEST AM_CXXFLAGS_BLACK = -D__BUILDING_CVC4LIB_UNIT_TEST -D__BUILDING_CVC4PARSERLIB_UNIT_TEST -- cgit v1.2.3