From 0147f812a54531242bfb3069ce85dcbc86f12947 Mon Sep 17 00:00:00 2001 From: Erik Kundiman Date: Fri, 15 Sep 2023 14:31:05 +0800 Subject: Limit unused-but-set-variable to Linux when Clang Others are fine without the error turned off, and the flag might not even be available on some other's Clang. --- indra/llcommon/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indra') diff --git a/indra/llcommon/CMakeLists.txt b/indra/llcommon/CMakeLists.txt index f42f9cda0f..dc46912714 100644 --- a/indra/llcommon/CMakeLists.txt +++ b/indra/llcommon/CMakeLists.txt @@ -295,7 +295,7 @@ else () PROPERTIES COMPILE_FLAGS -Wno-stringop-truncation) set_source_files_properties(llevent.cpp PROPERTIES COMPILE_FLAGS -Wno-nonnull) - elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang") + elseif (LINUX AND CMAKE_CXX_COMPILER_ID MATCHES "Clang") set_source_files_properties(llsys.cpp PROPERTIES COMPILE_FLAGS -Wno-unused-but-set-variable) endif() -- cgit v1.2.3