From cb93153ed6576a0f6553e2fc4bf324ad5498ba9d Mon Sep 17 00:00:00 2001 From: Rye Mutt <rye@alchemyviewer.org> Date: Sat, 8 Aug 2020 16:29:50 -0400 Subject: [PATCH] Fix gcc warning about using memset on non-trivial type --- indra/newview/llvosky.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/newview/llvosky.cpp b/indra/newview/llvosky.cpp index b4bff0482f8..00bc7789544 100644 --- a/indra/newview/llvosky.cpp +++ b/indra/newview/llvosky.cpp @@ -688,7 +688,7 @@ void LLVOSky::forceSkyUpdate() { mForceUpdate = TRUE; - memset(&m_lastAtmosphericsVars, 0x00, sizeof(AtmosphericsVars)); + m_lastAtmosphericsVars = AtmosphericsVars(); mCubeMapUpdateStage = -1; } -- GitLab