Skip to content

Commit

Permalink
suppress another one
Browse files Browse the repository at this point in the history
  • Loading branch information
davisking committed Apr 27, 2024
1 parent b9355f0 commit 87da295
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dlib/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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<double, 0, 2, dlib::memory_manager_stateless_kernel_1<char> >::data’ with nonzero offset 8 [-Werror=free-nonheap-object]
# 61 | delete [] item;
Expand Down

0 comments on commit 87da295

Please sign in to comment.