From feeaa1302c1eacccbcce6f470b76f574304f4b6e Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Tue, 21 Aug 2012 10:29:40 +0200 Subject: [PATCH] HarfBuzz: fix unused parameter / variable warnings Change-Id: I362c80081ac4e4d0b9126385bab5a77826810926 Reviewed-by: Eskil Abrahamsen Blomfeldt Reviewed-by: Konstantin Ritt --- src/3rdparty/harfbuzz/src/harfbuzz-gpos.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/3rdparty/harfbuzz/src/harfbuzz-gpos.c b/src/3rdparty/harfbuzz/src/harfbuzz-gpos.c index ecf647e..21ffe84 100644 --- a/src/3rdparty/harfbuzz/src/harfbuzz-gpos.c +++ b/src/3rdparty/harfbuzz/src/harfbuzz-gpos.c @@ -1120,16 +1120,16 @@ static HB_Error Load_PairSet ( HB_PairSet* ps, HB_Error error; HB_UShort n, m, count; - HB_UInt base_offset; #ifdef HB_USE_FLEXIBLE_VALUE_RECORD HB_UInt record_size = 0; HB_Short *vr; #else + HB_UInt base_offset; HB_PairValueRecord* pvr; -#endif base_offset = FILE_Pos(); +#endif if ( ACCESS_Frame( 2L ) ) return error; @@ -1245,6 +1245,9 @@ static void Free_PairSet( HB_PairSet* ps, FREE( pvr ); } #else + (void)format1; // unused + (void)format2; // unused + if ( ps->ValueRecords ) { FREE( ps->ValueRecords ); -- 2.7.4