Browse Source

Platform: warning suppression in deprecated code using deprecated code.

Strangely enough this only warns on Clang in the Emscripten build, and
nowhere else.
pull/680/head
Vladimír Vondruš 11 months ago
parent
commit
489ce15fb8
  1. 4
      src/Magnum/Platform/ScreenedApplication.h

4
src/Magnum/Platform/ScreenedApplication.h

@ -43,7 +43,11 @@ namespace Implementation {
CORRADE_HAS_TYPE(HasKeyEvent, typename T::KeyEvent);
CORRADE_HAS_TYPE(HasScrollEvent, typename T::ScrollEvent);
#ifdef MAGNUM_BUILD_DEPRECATED
/* Ignore macros needed by Emscripten (Clang 21), nothing else warns here for
some reason. Not even older Emscripten, not native Clang 19. */
CORRADE_IGNORE_DEPRECATED_PUSH
CORRADE_HAS_TYPE(HasMouseScrollEvent, typename T::MouseScrollEvent);
CORRADE_IGNORE_DEPRECATED_POP
#endif
CORRADE_HAS_TYPE(HasTextInputEvent, typename T::TextInputEvent);
CORRADE_HAS_TYPE(HasTextEditingEvent, typename T::TextEditingEvent);

Loading…
Cancel
Save