From d74367b40d3a2680bbc371b72e294419093e1d83 Mon Sep 17 00:00:00 2001 From: Erik Kundiman Date: Sat, 29 Jul 2023 20:51:40 +0800 Subject: stringop truncation warnings aren't errors on GCC --- indra/llcommon/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'indra/llcommon') diff --git a/indra/llcommon/CMakeLists.txt b/indra/llcommon/CMakeLists.txt index e5a3e5e0c7..758d746d54 100644 --- a/indra/llcommon/CMakeLists.txt +++ b/indra/llcommon/CMakeLists.txt @@ -283,6 +283,10 @@ if (USE_AUTOBUILD_3P OR USE_CONAN) add_dependencies(llcommon stage_third_party_libs) else () target_compile_options(${PROJECT_NAME} PUBLIC -Wno-deprecated-declarations) + if (CMAKE_CXX_COMPILER_ID MATCHES "GNU") + set_source_files_properties(llsdutil.cpp PROPERTIES + COMPILE_FLAGS -Wno-stringop-truncation) + endif() endif () if (LL_TESTS) -- cgit v1.2.3