From 87da2959d8fad8f5c61b784273e4dfe6ed33f5b0 Mon Sep 17 00:00:00 2001 From: Davis King Date: Sat, 27 Apr 2024 08:43:27 -0400 Subject: [PATCH] suppress another one --- dlib/test/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlib/test/CMakeLists.txt b/dlib/test/CMakeLists.txt index 772a6ca20..4154fa0a3 100644 --- a/dlib/test/CMakeLists.txt +++ b/dlib/test/CMakeLists.txt @@ -178,7 +178,8 @@ if (CMAKE_COMPILER_IS_GNUCXX) add_compile_options(-Wno-strict-overflow) add_compile_options(-Wno-maybe-uninitialized) - if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 11.3.0 AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS_EQUAL 11.4.0) + if ((CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 11.3.0 AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS_EQUAL 11.4.0) OR + (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 14.0.0 AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS_EQUAL 14.0.1)) # These versions of gcc wrongly yield this warning: # dlib::row_major_layout::layout >::data’ with nonzero offset 8 [-Werror=free-nonheap-object] # 61 | delete [] item;