From f9fc32e479236bc93cff3dbaa3d15405d6e846b8 Mon Sep 17 00:00:00 2001 From: Dan Paulat Date: Thu, 3 Aug 2023 06:34:19 -0500 Subject: [PATCH] Ignore Linux stb_image warning --- scwx-qt/source/scwx/qt/external/stb_image.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) 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