From f19447c3bec059d8bf70ee6f9c02c11e8a8cc131 Mon Sep 17 00:00:00 2001 From: Nicky Date: Wed, 3 Apr 2019 00:24:27 +0200 Subject: [PATCH] Correct some more warning instances of newer GCC and old boost not being a happy couple. --- indra/llmath/llcalc.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/indra/llmath/llcalc.cpp b/indra/llmath/llcalc.cpp index edc6986cc9..f063b877a5 100644 --- a/indra/llmath/llcalc.cpp +++ b/indra/llmath/llcalc.cpp @@ -24,6 +24,15 @@ * */ +// Disable some warnings on newer GCC versions. (Camd with GCC >= 8.2 +#if LL_LINUX + #pragma GCC diagnostic ignored "-Wuninitialized" + #if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__ ) >= 80200 + #pragma GCC diagnostic ignored "-Wmaybe-uninitialized" + #endif +#endif +// + #include "linden_common.h" #include "llcalc.h"