Fix compilation failure in mbgl-glfw due to strict -Werror on tinyobjloader (#4154)

This commit is contained in:
Andrew Calcutt
2026-03-08 17:58:47 -04:00
committed by GitHub
parent 755c1383ec
commit bbd653d7f8

View File

@@ -11,7 +11,11 @@
#include <filesystem>
#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_) {}