Fix warnings

This commit is contained in:
Behdad Esfahbod 2012-11-23 14:07:24 -05:00
parent 81822528ef
commit c779d82b2f
4 changed files with 5 additions and 9 deletions

View File

@ -1389,8 +1389,6 @@ struct PosLookup : Lookup
inline bool apply_once (hb_apply_context_t *c) const 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)) if (!c->check_glyph_property (&c->buffer->cur(), c->lookup_props, &c->property))
return false; return false;

View File

@ -609,9 +609,9 @@ struct Ligature
unsigned int count = component.len; unsigned int count = component.len;
if (unlikely (count < 1)) return TRACE_RETURN (false); if (unlikely (count < 1)) return TRACE_RETURN (false);
unsigned int end_offset; unsigned int end_offset = 0;
bool is_mark_ligature; bool is_mark_ligature = false;
unsigned int total_component_count; unsigned int total_component_count = 0;
if (likely (!match_input (c, count, if (likely (!match_input (c, count,
&component[1], &component[1],
@ -1184,8 +1184,6 @@ struct SubstLookup : Lookup
inline bool apply_once (hb_apply_context_t *c) const 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)) if (!c->check_glyph_property (&c->buffer->cur(), c->lookup_props, &c->property))
return false; return false;

View File

@ -1282,7 +1282,7 @@ static inline bool chain_context_apply_lookup (hb_apply_context_t *c,
const LookupRecord lookupRecord[], const LookupRecord lookupRecord[],
ChainContextApplyLookupContext &lookup_context) ChainContextApplyLookupContext &lookup_context)
{ {
unsigned int lookahead_offset; unsigned int lookahead_offset = 0;
return match_input (c, return match_input (c,
inputCount, input, inputCount, input,
lookup_context.funcs.match, lookup_context.match_data[1], lookup_context.funcs.match, lookup_context.match_data[1],

View File

@ -703,9 +703,9 @@ struct hb_auto_trace_t {
private: private:
unsigned int *plevel; unsigned int *plevel;
bool returned;
const char *what; const char *what;
const void *obj; const void *obj;
bool returned;
}; };
template <> /* Optimize when tracing is disabled */ template <> /* Optimize when tracing is disabled */
struct hb_auto_trace_t<0> { struct hb_auto_trace_t<0> {