From cd23817bf1884fee4457ab3381320b0c8fc33f48 Mon Sep 17 00:00:00 2001 From: Kai Blaschke Date: Wed, 28 Feb 2024 18:11:55 +0100 Subject: Fixed remaining compiler warnings Some warnings (e.g. in Opus and the tests) can't be fixed, only suppressed. --- source/rendering/StarTextPainter.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'source/rendering/StarTextPainter.cpp') diff --git a/source/rendering/StarTextPainter.cpp b/source/rendering/StarTextPainter.cpp index fe352d1..3266e18 100644 --- a/source/rendering/StarTextPainter.cpp +++ b/source/rendering/StarTextPainter.cpp @@ -124,7 +124,6 @@ bool TextPainter::processWrapText(StringView text, unsigned* wrapWidth, WrapText m_fontTextureGroup.switchFont(font); int lines = 0; - size_t i = 0; auto it = text.begin(); auto end = text.end(); @@ -150,8 +149,6 @@ bool TextPainter::processWrapText(StringView text, unsigned* wrapWidth, WrapText if (Text::isEscapeCode(character)) escIt = it; - ++i; - if (escIt != end) { if (character == Text::EndEsc) { @@ -432,7 +429,6 @@ RectF TextPainter::doRenderLine(StringView text, TextPositioning const& position pos.hAnchor = HorizontalAnchor::LeftAnchor; } - bool escape = false; String escapeCode; RectF bounds = RectF::withSize(pos.pos, Vec2F()); Text::TextCallback textCallback = [&](StringView text) { -- cgit v1.2.3