diff --git a/src/hb-ot-layout-gpos-table.hh b/src/hb-ot-layout-gpos-table.hh index aebc73fb1..e0c8ede65 100644 --- a/src/hb-ot-layout-gpos-table.hh +++ b/src/hb-ot-layout-gpos-table.hh @@ -1389,8 +1389,6 @@ struct PosLookup : Lookup inline bool apply_once (hb_apply_context_t *c) const { - unsigned int lookup_type = get_type (); - if (!c->check_glyph_property (&c->buffer->cur(), c->lookup_props, &c->property)) return false; diff --git a/src/hb-ot-layout-gsub-table.hh b/src/hb-ot-layout-gsub-table.hh index f82663ad8..032abb0e5 100644 --- a/src/hb-ot-layout-gsub-table.hh +++ b/src/hb-ot-layout-gsub-table.hh @@ -609,9 +609,9 @@ struct Ligature unsigned int count = component.len; if (unlikely (count < 1)) return TRACE_RETURN (false); - unsigned int end_offset; - bool is_mark_ligature; - unsigned int total_component_count; + unsigned int end_offset = 0; + bool is_mark_ligature = false; + unsigned int total_component_count = 0; if (likely (!match_input (c, count, &component[1], @@ -1184,8 +1184,6 @@ struct SubstLookup : Lookup inline bool apply_once (hb_apply_context_t *c) const { - unsigned int lookup_type = get_type (); - if (!c->check_glyph_property (&c->buffer->cur(), c->lookup_props, &c->property)) return false; diff --git a/src/hb-ot-layout-gsubgpos-private.hh b/src/hb-ot-layout-gsubgpos-private.hh index 16476e9ee..55ea9ca5c 100644 --- a/src/hb-ot-layout-gsubgpos-private.hh +++ b/src/hb-ot-layout-gsubgpos-private.hh @@ -1282,7 +1282,7 @@ static inline bool chain_context_apply_lookup (hb_apply_context_t *c, const LookupRecord lookupRecord[], ChainContextApplyLookupContext &lookup_context) { - unsigned int lookahead_offset; + unsigned int lookahead_offset = 0; return match_input (c, inputCount, input, lookup_context.funcs.match, lookup_context.match_data[1], diff --git a/src/hb-private.hh b/src/hb-private.hh index 42c025909..5c5359190 100644 --- a/src/hb-private.hh +++ b/src/hb-private.hh @@ -703,9 +703,9 @@ struct hb_auto_trace_t { private: unsigned int *plevel; - bool returned; const char *what; const void *obj; + bool returned; }; template <> /* Optimize when tracing is disabled */ struct hb_auto_trace_t<0> {