From 1b4ab8626b7d4835e7f0780558c559a6302e231f Mon Sep 17 00:00:00 2001 From: FrHun <28605587+frhun@users.noreply.github.com> Date: Thu, 16 Jun 2022 18:07:37 +0200 Subject: [PATCH] LibWeb: Disable unused error on temporarily unused variable from spec --- Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.cpp b/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.cpp index 80972ee7cf..d088043be2 100644 --- a/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.cpp +++ b/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.cpp @@ -660,7 +660,7 @@ CanvasRenderingContext2D::PreparedText CanvasRenderingContext2D::prepare_text(St // 7.8. If textBaseline is ideographic: Let the anchor point's vertical position be the ideographic-under baseline of the first available font of the inline box. // 7.9. If textBaseline is bottom: Let the anchor point's vertical position be the bottom of the em box of the first available font of the inline box. // FIXME: Once we have CanvasTextDrawingStyles, handle the alignment and baseline. - Gfx::IntPoint anchor { 0, 0 }; + [[maybe_unused]] Gfx::IntPoint anchor { 0, 0 }; auto physical_alignment = Gfx::TextAlignment::CenterLeft; // 8. Let result be an array constructed by iterating over each glyph in the inline box from left to right (if any), adding to the array, for each glyph, the shape of the glyph as it is in the inline box, positioned on a coordinate space using CSS pixels with its origin is at the anchor point.