summaryrefslogtreecommitdiff
path: root/src/autofit
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2023-01-16 16:38:56 +0100
committerWerner Lemberg <wl@gnu.org>2023-01-16 16:38:56 +0100
commit6a179ff7d55714501c5efce85e2a47de6055a07a (patch)
tree66e3e0651ac7d9358e9eed50e7a7fe7126af5a74 /src/autofit
parent2692b3215be4f106b714974c55f4ab80da25189c (diff)
downloadfreetype2-6a179ff7d55714501c5efce85e2a47de6055a07a.tar.gz
sr/*.c: Various minor fixes.
* src/autofit/ft-hb.c (_hb_ft_reference_table): Call `FT_UNUSED` after variable declarations. * src/gxvalid/gxvjust.c (gxv_just_widthDeltaClusters_validate): Eliminate unused variable. * src/gzip/ftgzip.c: Don't call GCC '-Wstrict-prototypes' pragma for C++ compiler. * src/sfnt/ttcolr.c (ENSURE_READ_BYTES): Remove final semicolon to avoid compiler warning. * src/sfnt/ttsvg.c (tt_face_load_svg_doc): Fix signedness warning.
Diffstat (limited to 'src/autofit')
-rw-r--r--src/autofit/ft-hb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/autofit/ft-hb.c b/src/autofit/ft-hb.c
index 1958f9c36..7ba1bfa55 100644
--- a/src/autofit/ft-hb.c
+++ b/src/autofit/ft-hb.c
@@ -38,12 +38,13 @@
static hb_blob_t *
_hb_ft_reference_table (hb_face_t *face, hb_tag_t tag, void *user_data)
{
- FT_UNUSED (face);
FT_Face ft_face = (FT_Face) user_data;
FT_Byte *buffer;
FT_ULong length = 0;
FT_Error error;
+ FT_UNUSED (face);
+
/* Note: FreeType like HarfBuzz uses the NONE tag for fetching the entire blob */
error = FT_Load_Sfnt_Table (ft_face, tag, 0, NULL, &length);