summaryrefslogtreecommitdiff
path: root/indra/llcommon
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2023-09-12 19:27:23 +0800
committerErik Kundiman <erik@megapahit.org>2023-09-12 19:27:23 +0800
commit9a83ffbb902ada9cf5bde1559f2429f793b589eb (patch)
tree5b9428eafde3501eb1aabaec59a9c4c4c95c242f /indra/llcommon
parent875b8c71fb1bfdddf26e896a0409a6aca0df713e (diff)
Set but not used variable isn't an error
Encountered when using Clang on Linux. Switched to Clang cause sometimes errors can be less escapable on GCC.
Diffstat (limited to 'indra/llcommon')
-rw-r--r--indra/llcommon/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/llcommon/CMakeLists.txt b/indra/llcommon/CMakeLists.txt
index b1dc65ffc5..f42f9cda0f 100644
--- a/indra/llcommon/CMakeLists.txt
+++ b/indra/llcommon/CMakeLists.txt
@@ -295,6 +295,9 @@ 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")
+ set_source_files_properties(llsys.cpp PROPERTIES
+ COMPILE_FLAGS -Wno-unused-but-set-variable)
endif()
endif ()