From 65f4f506404f42ef0e2ad8b089ba82cb1d63f579 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 28 Jun 2022 10:13:06 +1000 Subject: Cleanup: compiler warnings, remove unused functions --- source/blender/blenfont/intern/blf_glyph.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source/blender/blenfont') diff --git a/source/blender/blenfont/intern/blf_glyph.c b/source/blender/blenfont/intern/blf_glyph.c index bda6c51bf14..63cf3b3e564 100644 --- a/source/blender/blenfont/intern/blf_glyph.c +++ b/source/blender/blenfont/intern/blf_glyph.c @@ -682,7 +682,9 @@ static bool blf_glyph_render_bitmap(FontBLF *font, FT_GlyphSlot glyph) * * \param factor: -1 (min stroke width) <= 0 (normal) => 1 (max boldness). */ -static bool blf_glyph_transform_weight(FT_GlyphSlot glyph, float factor, bool monospaced) +static bool UNUSED_FUNCTION(blf_glyph_transform_weight)(FT_GlyphSlot glyph, + float factor, + bool monospaced) { if (glyph->format == FT_GLYPH_FORMAT_OUTLINE) { /* Fake bold if the font does not have this variable axis. */ @@ -711,7 +713,7 @@ static bool blf_glyph_transform_weight(FT_GlyphSlot glyph, float factor, bool mo * * \note that left-leaning italics are possible in some RTL writing systems. */ -static bool blf_glyph_transform_slant(FT_GlyphSlot glyph, float factor) +static bool UNUSED_FUNCTION(blf_glyph_transform_slant)(FT_GlyphSlot glyph, float factor) { if (glyph->format == FT_GLYPH_FORMAT_OUTLINE) { FT_Matrix transform = {to_16dot16(1), to_16dot16(factor / 2.0f), 0, to_16dot16(1)}; -- cgit v1.2.3