From 820a660695d918d1fa2c67715d03aca546152b34 Mon Sep 17 00:00:00 2001 From: David Goffredo Date: Tue, 13 Jun 2023 15:39:11 -0400 Subject: [PATCH] suppress compiler errors stemming from bugged warning --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e7d89565..8fe4e9eb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,6 +17,10 @@ set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) +# This warning has a false positive. See +# . +add_compile_options(-Wno-error=free-nonheap-object) + # If we're building with clang, then use the libc++ version of the standard # library instead of libstdc++. Better coverage of build configurations. #