From fd2e46584a2d0b089a87e9a02aedd15a4f6b0a20 Mon Sep 17 00:00:00 2001 From: Nicky Date: Sun, 10 May 2015 17:39:08 +0200 Subject: [PATCH] Disable warnings for newer GCC versions. --- indra/llcommon/llallocator_heap_profile.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/indra/llcommon/llallocator_heap_profile.cpp b/indra/llcommon/llallocator_heap_profile.cpp index b2eafde1aa..6e6a82e3f5 100755 --- a/indra/llcommon/llallocator_heap_profile.cpp +++ b/indra/llcommon/llallocator_heap_profile.cpp @@ -25,6 +25,16 @@ * $/LicenseInfo$ */ +// Disable some warnings on newer GCC versions. +// This might also trigger on something like 4.8, but I did not suchh a GCC to test anything lower than 4.9 and higher than 4.6 +#if LL_LINUX + #if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__ ) >= 40900 + #pragma GCC diagnostic ignored "-Wuninitialized" + #pragma GCC diagnostic ignored "-Wmaybe-uninitialized" + #endif +#endif +// + #include "linden_common.h" #include "llallocator_heap_profile.h"