From f5fa13a44d034c40e5f40af45ae141194b2ea282 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Wed, 24 Jun 2026 11:53:58 +0200 Subject: [PATCH] LTO + /O2 makes VS2026 very angry --- indra/llui/llstatbar.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/indra/llui/llstatbar.cpp b/indra/llui/llstatbar.cpp index 46b4071675..e3f4552d33 100644 --- a/indra/llui/llstatbar.cpp +++ b/indra/llui/llstatbar.cpp @@ -344,6 +344,10 @@ S32 calc_num_rapid_changes(LLTrace::PeriodicRecording& periodic_recording, const return num_rapid_changes; } +#if LL_MSVC && USE_LTO +#pragma warning(push) +#pragma warning(disable : 4756) +#endif void LLStatBar::draw() { LLLocalClipRect _(getLocalRect()); @@ -606,6 +610,9 @@ void LLStatBar::draw() LLView::draw(); } +#if LL_MSVC && USE_LTO +#pragma warning(pop) +#endif void LLStatBar::setStat(const std::string& stat_name) {