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