summaryrefslogtreecommitdiff
path: root/indra/llcommon
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2023-09-15 14:31:05 +0800
committerErik Kundiman <erik@megapahit.org>2023-09-15 14:31:05 +0800
commit0147f812a54531242bfb3069ce85dcbc86f12947 (patch)
treecc50ff56de222dada96cc1a0378b035e6c26e143 /indra/llcommon
parent8c66659159bc347995ac65389faff1ecb1b6b127 (diff)
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.
Diffstat (limited to 'indra/llcommon')
-rw-r--r--indra/llcommon/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
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()