From 5c32ac289e585878e67ad65e2c61642b0d40354e Mon Sep 17 00:00:00 2001 From: Nikolaus Demmel Date: Sat, 6 Nov 2021 00:45:58 +0100 Subject: [PATCH] pangolin: silence clang-13 warnings --- thirdparty/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/thirdparty/CMakeLists.txt b/thirdparty/CMakeLists.txt index d2e054c..7cf75c2 100644 --- a/thirdparty/CMakeLists.txt +++ b/thirdparty/CMakeLists.txt @@ -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") 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 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")