mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
suppress another one
This commit is contained in:
parent
b9355f08c4
commit
87da2959d8
@ -178,7 +178,8 @@ if (CMAKE_COMPILER_IS_GNUCXX)
|
|||||||
add_compile_options(-Wno-strict-overflow)
|
add_compile_options(-Wno-strict-overflow)
|
||||||
add_compile_options(-Wno-maybe-uninitialized)
|
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:
|
# 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]
|
# 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;
|
# 61 | delete [] item;
|
||||||
|
Loading…
Reference in New Issue
Block a user