From e2f0feaefcbdb0e3b82cd98c598a8ed5b510dfa8 Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Thu, 30 Jun 2022 11:27:02 -0500 Subject: [PATCH] Disable OpenGL deprecation warnings This was likely transitively included from another header from after clang-format rearranged some headers, it was no longer present. --- src/SFML/Window/iOS/EaglContext.hpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/SFML/Window/iOS/EaglContext.hpp b/src/SFML/Window/iOS/EaglContext.hpp index df1664d4..c832aeaf 100644 --- a/src/SFML/Window/iOS/EaglContext.hpp +++ b/src/SFML/Window/iOS/EaglContext.hpp @@ -35,6 +35,15 @@ #include +#if defined(__APPLE__) +#if defined(__clang__) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#elif defined(__GNUC__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif +#endif SFML_DECLARE_OBJC_CLASS(EAGLContext); SFML_DECLARE_OBJC_CLASS(SFView); @@ -169,4 +178,12 @@ private: } // namespace sf +#if defined(__APPLE__) +#if defined(__clang__) +#pragma clang diagnostic pop +#elif defined(__GNUC__) +#pragma GCC diagnostic pop +#endif +#endif + #endif // SFML_EAGLCONTEXT_HPP