Disable OpenGL deprecation warnings

This was likely transitively included from another header from after
clang-format rearranged some headers, it was no longer present.
This commit is contained in:
Chris Thrasher 2022-06-30 11:27:02 -05:00 committed by Lukas Dürrenberger
parent 87c4213ac6
commit e2f0feaefc

View File

@ -35,6 +35,15 @@
#include <glad/gl.h>
#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