Skip to content

Commit 3857735

Browse files
committed
Update Makefiles to disable keyword-macro warning in tests
To make private methos avilable to unit tests, it is a common practice to redefine the private keyword. While GCC doesn't carea bout this, older clang versions don't support this behavior and issue a warning. As all warnings are converted into errors, this waring breaks the build. To allow the intended behavior during testing, the -Wno-key-macro flag is added.
1 parent 0784c9e commit 3857735

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ DIRS = analyses \
1515
langapi \
1616
linking \
1717
memory-analyzer \
18-
memory-models \
1918
pointer-analysis \
2019
solvers \
2120
util \

unit/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ CLEANFILES = $(TESTS) \
105105
miniBDD$(OBJEXT) \
106106
#Empty last line
107107

108+
ifneq ($(CC),cl)
109+
CXXFLAGS += -Wno-keyword-macro
110+
endif
111+
108112
all: cprover.dir testing-utils.dir
109113
$(MAKE) $(MAKEARGS) $(TESTS)
110114

0 commit comments

Comments
 (0)