From fbd2adb9e868ffb8de22e191b4a9f78cc203a17f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 5 Oct 2024 20:44:03 +0200 Subject: [PATCH] Text: fix warning on a non-assert build. --- src/Magnum/Text/Alignment.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Magnum/Text/Alignment.cpp b/src/Magnum/Text/Alignment.cpp index b73483986..d441cc004 100644 --- a/src/Magnum/Text/Alignment.cpp +++ b/src/Magnum/Text/Alignment.cpp @@ -103,6 +103,9 @@ Debug& operator<<(Debug& debug, const Alignment value) { } Alignment alignmentForDirection(const Alignment alignment, const LayoutDirection layoutDirection, const ShapeDirection shapeDirection) { + #ifdef CORRADE_NO_ASSERT + static_cast(layoutDirection); + #endif CORRADE_ASSERT(layoutDirection == LayoutDirection::HorizontalTopToBottom, "Text::alignmentForDirection(): only" << LayoutDirection::HorizontalTopToBottom << "is supported right now, got" << layoutDirection, {}); CORRADE_ASSERT(shapeDirection != ShapeDirection::TopToBottom &&