From 5d5b1650d02df1f9c029454d075c3af4c6ed85de Mon Sep 17 00:00:00 2001 From: Zi Ree Date: Tue, 11 Jun 2024 02:55:32 +0200 Subject: [PATCH] Linux: Make it compile --- indra/newview/gltf/buffer_util.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/indra/newview/gltf/buffer_util.h b/indra/newview/gltf/buffer_util.h index 4e6f5901e7..1440e4c6f8 100644 --- a/indra/newview/gltf/buffer_util.h +++ b/indra/newview/gltf/buffer_util.h @@ -99,6 +99,13 @@ namespace LL #pragma clang diagnostic ignored "-Wunused-function" #endif +// make gcc ignore this as well +#if defined(__GNUC__) +#pragma GCC diagnostic ignored "-Wunused-function" +#pragma GCC diagnostic push +#endif +// + template<> void copyScalar(F32* src, F32& dst) { @@ -213,6 +220,12 @@ namespace LL dst.set_value(src); } +// make gcc ignore this as well +#if defined(__GNUC__) +#pragma GCC diagnostic pop +#endif +// + #if defined(__clang__) #pragma clang diagnostic pop #endif