Skip to content

Commit

Permalink
shut up memory sanitizer about stl_tree in doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesnicholson committed Dec 30, 2023
1 parent 8f4e86f commit e3ec9f4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ endif

CPPFLAGS += -Wno-c++98-compat -Wno-padded

ifdef COBS_SANITIZER
ifneq (,$(findstring memory,$(COBS_SANITIZER)))
CPPFLAGS += -fsanitize-ignorelist=memory-sanitize-ignorelist.txt
LDFLAGS += -fsanitize-ignorelist=memory-sanitize-ignorelist.txt
endif
endif

$(BUILD_DIR)/cobs_unittests: $(OBJS) $(BUILD_DIR)/cobs.c.o Makefile
$(CXX) $(LDFLAGS) $(COBS_SANITIZER) $(OBJS) $(BUILD_DIR)/cobs.c.o -o $@

Expand Down
1 change: 1 addition & 0 deletions memory-sanitize-ignorelist.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src:*/stl_tree.h

0 comments on commit e3ec9f4

Please sign in to comment.