From 9a83ffbb902ada9cf5bde1559f2429f793b589eb Mon Sep 17 00:00:00 2001 From: Erik Kundiman Date: Tue, 12 Sep 2023 19:27:23 +0800 Subject: 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. --- indra/llcommon/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'indra/llcommon') 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 () -- cgit v1.2.3