Merge pull request #7 from AlericInglewood/aleric-03-maybe-uninitialized-1

Compile warning/error workaround.
master
Beq Janus 2023-08-29 22:33:18 +01:00 committed by GitHub
commit a8804e8525
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 1 deletions

View File

@ -2130,8 +2130,18 @@ BOOL LLFace::getGeometryVolume(const LLVolume& volume,
LLVector4a t;
tangent_to_object.rotate(binormal_dir, t);
LLVector4a binormal;
// <FS:PR-Aleric> GCC13 warning: maybe-uninitialized - probably bogus
#if defined(__GNUC__) && (__GNUC__ >= 13)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
// </FS:PR-Aleric>
mat_normal.rotate(t, binormal);
// <FS:PR-Aleric>
#if defined(__GNUC__) && (__GNUC__ >= 13)
#pragma GCC diagnostic pop
#endif
// </FS:PR-Aleric>
//VECTORIZE THIS
if (mDrawablep->isActive())
{