pangolin: silence clang-13 warnings

This commit is contained in:
Nikolaus Demmel 2021-11-06 00:45:58 +01:00 committed by Vladyslav Usenko
parent f95b4f4902
commit 5c32ac289e
1 changed files with 5 additions and 0 deletions

View File

@ -87,6 +87,11 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION
target_compile_options(pangolin PRIVATE "-Wno-deprecated-copy") target_compile_options(pangolin PRIVATE "-Wno-deprecated-copy")
endif() endif()
# fix pangolin: clang >= 13.0
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 13.0.0)
target_compile_options(pangolin PRIVATE "-Wno-unused-but-set-variable;-Wno-null-pointer-subtraction")
endif()
# fix pangolin: GCC >= 9.0 # fix pangolin: GCC >= 9.0
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 9.0) if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 9.0)
target_compile_options(pangolin PRIVATE "-Wno-stringop-truncation;-Wno-deprecated-copy") target_compile_options(pangolin PRIVATE "-Wno-stringop-truncation;-Wno-deprecated-copy")