From 87f8159c6a230e3ec1b8a628a20b04cc308d9fcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Wed, 19 Oct 2022 10:47:12 +0200 Subject: [PATCH] QCoreTextFontEngine: Mark CGAffineTransformConcat as unused We don't know at this point why the result isn't assigned back to cgMatrix, but for now mark it as unused to fix warnings-are-errors builds. Pick-to: 6.2 6.4 5.15 Change-Id: I6b32bbc42b2147b5304e1c72026e39d3e1eb8a4d Reviewed-by: Timur Pocheptsov --- src/gui/text/coretext/qfontengine_coretext.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/text/coretext/qfontengine_coretext.mm b/src/gui/text/coretext/qfontengine_coretext.mm index e4556207874..32f7ed20949 100644 --- a/src/gui/text/coretext/qfontengine_coretext.mm +++ b/src/gui/text/coretext/qfontengine_coretext.mm @@ -378,7 +378,8 @@ void QCoreTextFontEngine::draw(CGContextRef ctx, qreal x, qreal y, const QTextIt CGAffineTransform cgMatrix = CGAffineTransformMake(1, 0, 0, -1, 0, -paintDeviceHeight); - CGAffineTransformConcat(cgMatrix, oldTextMatrix); + // FIXME: Should we include the old matrix here? If so we need to assign it. + Q_UNUSED(CGAffineTransformConcat(cgMatrix, oldTextMatrix)); if (synthesisFlags & QFontEngine::SynthesizedItalic) cgMatrix = CGAffineTransformConcat(cgMatrix, CGAffineTransformMake(1, 0, -SYNTHETIC_ITALIC_SKEW, 1, 0, 0));