Fix warnings
This commit is contained in:
parent
81822528ef
commit
c779d82b2f
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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],
|
||||
|
|
|
@ -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> {
|
||||
|
|
Loading…
Reference in New Issue