1
0
Fork 0

Cleanup: Fix compiler warning.

Removed compiler warning coming from unused parameter in inherited
function by adding an atttribute to the parameter.
pull/12611/head
Sadie del Solar 2024-04-28 16:41:20 -07:00
parent 9fe9e4d398
commit 3ba27fc13c
1 changed files with 1 additions and 1 deletions

View File

@ -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);