fix build (gcc): Disable warning stringop-overread

This warning (as error) was introduced with g++ 12
This commit is contained in:
John Colvin committed 2022-10-11 23:19:47 -04:00
1 parent 6040f37a7e
commit 69e8953f0f
1 file changed
+1
+1
View File
@@ -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")