From e90f65a835af8c9c97a40379ecf6b413b38066c2 Mon Sep 17 00:00:00 2001 From: Robert Beckebans Date: Wed, 10 Jul 2024 20:06:20 +0200 Subject: [PATCH] Fixed gcc compile error. Close #911 #909 --- neo/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/neo/CMakeLists.txt b/neo/CMakeLists.txt index 5655194a..f8323c5b 100644 --- a/neo/CMakeLists.txt +++ b/neo/CMakeLists.txt @@ -126,6 +126,8 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang") #add_definitions(-Wall) add_definitions(-Werror=format-security) add_definitions(-Werror=format) + add_definitions(-Wno-format-zero-length) + add_definitions(-Wno-nonnull) # Compiler check (needs -std=c++17 flag) include(CheckCXXCompilerFlag)