From 147b55e220c14cbc51b28d5cf2d148b094406dc1 Mon Sep 17 00:00:00 2001 From: Michael Zhilin Date: Sat, 27 Dec 2025 19:57:20 +0300 Subject: [PATCH] [cosmetic] remove unused variable to make clang happy Variable len is defined and assigned, but not used anywhere. So clean it. --- src/font.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/font.c b/src/font.c index f06493be..2e0cc034 100644 --- a/src/font.c +++ b/src/font.c @@ -367,7 +367,6 @@ void RenderString(Drawable d, FontType font, ColorType color, { XRectangle rect; Region renderRegion; - int len; char *utf8String; #ifdef USE_PANGO XftDraw *xd; @@ -386,7 +385,6 @@ void RenderString(Drawable d, FontType font, ColorType color, /* Convert to UTF-8 if necessary. */ utf8String = GetUTF8String(str); - len = strlen(utf8String); /* Get the bounds for the string based on the specified width. */ rect.x = x;