diff --git a/scwx-qt/source/scwx/qt/external/stb_image.cpp b/scwx-qt/source/scwx/qt/external/stb_image.cpp index c9598836..b2c73443 100644 --- a/scwx-qt/source/scwx/qt/external/stb_image.cpp +++ b/scwx-qt/source/scwx/qt/external/stb_image.cpp @@ -1,4 +1,14 @@ #define STB_IMAGE_IMPLEMENTATION #define STBI_ASSERT(x) #define STBI_FAILURE_USERMSG + +#if defined(__GNUC__) +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif + #include + +#if defined(__GNUC__) +# pragma GCC diagnostic pop +#endif