From a9cb3926379e3cef4a31704854cfb1282c16aa02 Mon Sep 17 00:00:00 2001 From: Aleric Inglewood Date: Fri, 25 Aug 2023 17:08:35 +0200 Subject: [PATCH] Compile warning/error workaround. Tested by setting mat_normal to some magic value and then asserting that it was changed by the time we get here. --- indra/newview/llface.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/indra/newview/llface.cpp b/indra/newview/llface.cpp index e52500ce3f..255b7d1038 100644 --- a/indra/newview/llface.cpp +++ b/indra/newview/llface.cpp @@ -2130,8 +2130,18 @@ BOOL LLFace::getGeometryVolume(const LLVolume& volume, LLVector4a t; tangent_to_object.rotate(binormal_dir, t); LLVector4a binormal; +// GCC13 warning: maybe-uninitialized - probably bogus +#if defined(__GNUC__) && (__GNUC__ >= 13) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wmaybe-uninitialized" +#endif +// mat_normal.rotate(t, binormal); - +// +#if defined(__GNUC__) && (__GNUC__ >= 13) +#pragma GCC diagnostic pop +#endif +// //VECTORIZE THIS if (mDrawablep->isActive()) {