From fa5a8476ee446b57a19910a55c82bc96d45d06f6 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Tue, 5 Apr 2022 19:04:29 +0200 Subject: [PATCH] Fix gcc warning: unused function --- code/Pbrt/PbrtExporter.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/Pbrt/PbrtExporter.cpp b/code/Pbrt/PbrtExporter.cpp index ea29860d3..c088e3851 100644 --- a/code/Pbrt/PbrtExporter.cpp +++ b/code/Pbrt/PbrtExporter.cpp @@ -86,12 +86,17 @@ Other: #if _MSC_VER // "unreferenced function has been removed" (SSE2 detection routine in x64 builds) #pragma warning(push) #pragma warning(disable : 4505) +#else +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-variable" #endif #define STB_IMAGE_STATIC #define STB_IMAGE_IMPLEMENTATION #include "stb/stb_image.h" #if _MSC_VER #pragma warning(pop) +#else +#pragma GCC diagnostic pop #endif using namespace Assimp;