From 489ce15fb8589fe1fa4e3259dae51e2401161e0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 5 Jun 2025 18:52:29 +0200 Subject: [PATCH] Platform: warning suppression in deprecated code using deprecated code. Strangely enough this only warns on Clang in the Emscripten build, and nowhere else. --- src/Magnum/Platform/ScreenedApplication.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Magnum/Platform/ScreenedApplication.h b/src/Magnum/Platform/ScreenedApplication.h index aa82f12bb..31852979f 100644 --- a/src/Magnum/Platform/ScreenedApplication.h +++ b/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);