summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2023-07-12 23:06:02 +0800
committerErik Kundiman <erik@megapahit.org>2023-07-19 16:38:38 +0800
commit787ffd6b74fb0eb488f936aa7156b7acc1b296eb (patch)
treee3c2cc90fdd97394fbde979883e1d9c2a95231b4 /indra
parent6bcebc33c49f4f1b6180640329793e55026da540 (diff)
No dangling gsl warning on newview with Clang
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/CMakeLists.txt b/indra/newview/CMakeLists.txt
index 6a1c975a00..0f5bb57bea 100644
--- a/indra/newview/CMakeLists.txt
+++ b/indra/newview/CMakeLists.txt
@@ -1930,6 +1930,12 @@ endif()
set(ARTWORK_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE PATH
"Path to artwork files.")
+if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
+ set_source_files_properties(llappviewerlinux.cpp PROPERTIES
+ COMPILE_FLAGS -Wno-dangling-gsl
+ )
+endif ()
+
if (LINUX)
set(product SecondLife-${ARCH}-${VIEWER_SHORT_VERSION}.${VIEWER_VERSION_REVISION})