From 0d1b4c3eeec8139cc21039a20c2fe0cfb95bb5eb Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Mon, 13 Mar 2023 13:23:35 +0100 Subject: [PATCH] :green_heart: suppress -Wunsafe-buffer-usage warnings --- cmake/ci.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/ci.cmake b/cmake/ci.cmake index d07ab920c..936ce0386 100644 --- a/cmake/ci.cmake +++ b/cmake/ci.cmake @@ -95,6 +95,7 @@ file(GLOB_RECURSE SRC_FILES ${PROJECT_SOURCE_DIR}/include/nlohmann/*.hpp) # -Wno-extra-semi-stmt The library uses std::assert which triggers this warning. # -Wno-padded We do not care about padding warnings. # -Wno-covered-switch-default All switches list all cases and a default case. +# -Wno-unsafe-buffer-usage Otherwise Doctest would not compile. # -Wno-weak-vtables The library is header-only. # -Wreserved-identifier See https://github.com/onqtam/doctest/issues/536. @@ -107,6 +108,7 @@ set(CLANG_CXXFLAGS -Wno-extra-semi-stmt -Wno-padded -Wno-covered-switch-default + -Wno-unsafe-buffer-usage -Wno-weak-vtables -Wno-reserved-identifier )