From 69e8953f0fa3bd7badd835bb876dbdb626abe601 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Mon, 3 Oct 2022 17:50:17 -0400 Subject: [PATCH] fix build (gcc): Disable warning stringop-overread This warning (as error) was introduced with g++ 12 --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index be69462c8..5802bbe02 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -71,6 +71,7 @@ else() -Werror \ -Wno-missing-braces \ -Wno-ignored-qualifiers \ + -Wno-stringop-overread \ --std=c++17 -fdiagnostics-color") set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_DEBUG} -fno-omit-frame-pointer -DNDEBUG -O3") set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DDEBUG")