From 3ba27fc13c7435233f8fe240be3a6a3a04032917 Mon Sep 17 00:00:00 2001 From: Sadie del Solar Date: Sun, 28 Apr 2024 16:41:20 -0700 Subject: [PATCH] Cleanup: Fix compiler warning. Removed compiler warning coming from unused parameter in inherited function by adding an atttribute to the parameter. --- src/fontcache/freetypefontcache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fontcache/freetypefontcache.cpp b/src/fontcache/freetypefontcache.cpp index 00d45a251a..91bae1c0e2 100644 --- a/src/fontcache/freetypefontcache.cpp +++ b/src/fontcache/freetypefontcache.cpp @@ -115,7 +115,7 @@ void FreeTypeFontCache::SetFontSize(FontSize, FT_Face, int pixels) } } -static FT_Error LoadFont(FontSize fs, FT_Face face, const char *font_name, uint size) +static FT_Error LoadFont(FontSize fs, FT_Face face, [[maybe_unused]] const char *font_name, uint size) { Debug(fontcache, 2, "Requested '{}', using '{} {}'", font_name, face->family_name, face->style_name);