From 50ceeda103e59a3fb18956511a60ae4f82db28f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 2 Jul 2025 12:52:52 +0200 Subject: [PATCH] Platform: silence a useless deprecation warning. Newer GCCs don't warn for use of a deprecated API in a deprecated API, GCC 4.8 doesn't have such redundancy check in place yet. --- src/Magnum/Platform/AbstractXApplication.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Magnum/Platform/AbstractXApplication.h b/src/Magnum/Platform/AbstractXApplication.h index f585ffaf9..ef0e16667 100644 --- a/src/Magnum/Platform/AbstractXApplication.h +++ b/src/Magnum/Platform/AbstractXApplication.h @@ -1191,9 +1191,11 @@ class AbstractXApplication::InputEvent { * @m_deprecated_since_latest Use @ref KeyEvent::pointers() or * @ref PointerMoveEvent::pointers() instead. */ + CORRADE_IGNORE_DEPRECATED_PUSH CORRADE_DEPRECATED("use pointers() instead") Buttons buttons() const { return Buttons(_modifiers & (Button1Mask|Button2Mask|Button3Mask)); } + CORRADE_IGNORE_DEPRECATED_POP #endif #ifndef DOXYGEN_GENERATING_OUTPUT