From 7fd0caea3d656d73ee229c31ccf32724bec4d321 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Mon, 18 Mar 2024 12:14:40 +0100 Subject: [PATCH] cli/CMakeLists.txt: limit a warning suppression to Clang 13 (#6144) --- cli/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/CMakeLists.txt b/cli/CMakeLists.txt index 728062ccdb3..38a060df0d3 100644 --- a/cli/CMakeLists.txt +++ b/cli/CMakeLists.txt @@ -18,8 +18,8 @@ if (BUILD_CORE_DLL) target_compile_definitions(cli_objs PRIVATE CPPCHECKLIB_IMPORT TINYXML2_IMPORT) endif() -if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 14) - # false positive warning in up to Clang 13 - caused by FD_ZERO macro +if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL 13) + # false positive warning in Clang 13 - caused by FD_ZERO macro set_source_files_properties(processexecutor.cpp PROPERTIES COMPILE_FLAGS -Wno-reserved-identifier) endif()