From bbd653d7f86cc4de1757c63c15b037efe13ec7e1 Mon Sep 17 00:00:00 2001 From: Andrew Calcutt Date: Sun, 8 Mar 2026 17:58:47 -0400 Subject: [PATCH] Fix compilation failure in `mbgl-glfw` due to strict `-Werror` on `tinyobjloader` (#4154) --- platform/glfw/example_custom_drawable_style_layer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platform/glfw/example_custom_drawable_style_layer.cpp b/platform/glfw/example_custom_drawable_style_layer.cpp index 19cb3789d..7b4a5ae93 100644 --- a/platform/glfw/example_custom_drawable_style_layer.cpp +++ b/platform/glfw/example_custom_drawable_style_layer.cpp @@ -11,7 +11,11 @@ #include #define TINYOBJLOADER_IMPLEMENTATION +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunknown-pragmas" +#pragma GCC diagnostic ignored "-Wunused-function" #include "tiny_obj_loader.h" +#pragma GCC diagnostic pop ExampleCustomDrawableStyleLayerHost::ExampleCustomDrawableStyleLayerHost(const std::string& assetsPath_) : assetsPath(assetsPath_) {}