Skip to content

Commit 87da295

Browse files
committed
suppress another one
1 parent b9355f0 commit 87da295

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dlib/test/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@ if (CMAKE_COMPILER_IS_GNUCXX)
178178
add_compile_options(-Wno-strict-overflow)
179179
add_compile_options(-Wno-maybe-uninitialized)
180180

181-
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 11.3.0 AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS_EQUAL 11.4.0)
181+
if ((CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 11.3.0 AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS_EQUAL 11.4.0) OR
182+
(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 14.0.0 AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS_EQUAL 14.0.1))
182183
# These versions of gcc wrongly yield this warning:
183184
# dlib::row_major_layout::layout<double, 0, 2, dlib::memory_manager_stateless_kernel_1<char> >::data’ with nonzero offset 8 [-Werror=free-nonheap-object]
184185
# 61 | delete [] item;

0 commit comments

Comments
 (0)