From 5eea669444f677f11e5ee0c21b9539606e35b9c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 1 Oct 2024 12:16:13 +0200 Subject: [PATCH] Text: work around bogus deprecation warnings on older GCCs. Happens with 4.8 as well as 7, but not 9, and not on any later. Not sure if GCC 8 is affected or not. --- src/Magnum/Text/AbstractFont.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Magnum/Text/AbstractFont.h b/src/Magnum/Text/AbstractFont.h index ae7764ca7..eb0b04bb0 100644 --- a/src/Magnum/Text/AbstractFont.h +++ b/src/Magnum/Text/AbstractFont.h @@ -797,18 +797,26 @@ class MAGNUM_TEXT_EXPORT AbstractLayouter { public: /** @brief Copying is not allowed */ + CORRADE_IGNORE_DEPRECATED_PUSH /* GCC <=7 warns due to the argument */ AbstractLayouter(const AbstractLayouter&) = delete; + CORRADE_IGNORE_DEPRECATED_POP /** @brief Moving is not allowed */ + CORRADE_IGNORE_DEPRECATED_PUSH /* GCC <=7 warns due to the argument */ AbstractLayouter(AbstractLayouter&&) = delete; + CORRADE_IGNORE_DEPRECATED_POP virtual ~AbstractLayouter(); /** @brief Copying is not allowed */ + CORRADE_IGNORE_DEPRECATED_PUSH /* GCC <=7 warns due to the argument */ AbstractLayouter& operator=(const AbstractLayouter&) = delete; + CORRADE_IGNORE_DEPRECATED_POP /** @brief Moving is not allowed */ + CORRADE_IGNORE_DEPRECATED_PUSH /* GCC <=7 warns due to the argument */ AbstractLayouter& operator=(const AbstractLayouter&&) = delete; + CORRADE_IGNORE_DEPRECATED_POP /** @brief Count of glyphs in the laid out text */ UnsignedInt glyphCount() const { return _glyphs.size(); }