Skip to content

Commit 51afd51

Browse files
committed
YAML CPP: Always ignore container overflows
1 parent 2a42ae2 commit 51afd51

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/plugins/yamlcpp/CMakeLists.txt

+1-4
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ if (DEPENDENCY_PHASE)
2222
"which do not point to an object of type `_Sp_counted_base`")
2323
endif (${DISABLE_PLUGIN_ASAN})
2424

25-
# Ignore warnings about container overflows on FreeBSD.
26-
if (CMAKE_SYSTEM_NAME MATCHES FreeBSD)
27-
set (ASAN_DISABLE_CONTAINER_OVERFLOW_CHECK TEST_ENVIRONMENT "ASAN_OPTIONS=detect_container_overflow=0")
28-
endif (CMAKE_SYSTEM_NAME MATCHES FreeBSD)
2925
endif (DEPENDENCY_PHASE)
3026

3127
add_plugin (yamlcpp
@@ -36,6 +32,7 @@ add_plugin (yamlcpp
3632
TEST_README
3733
INSTALL_TEST_DATA
3834
TEST_REQUIRED_PLUGINS base64 directoryvalue
35+
TEST_ENVIRONMENT "ASAN_OPTIONS=detect_container_overflow=0"
3936
SOURCES yamlcpp.hpp
4037
yamlcpp.cpp
4138
read.hpp

0 commit comments

Comments
 (0)