Fix warnings
authorBehdad Esfahbod <behdad@behdad.org>
Fri, 23 Nov 2012 19:07:24 +0000 (14:07 -0500)
committerBehdad Esfahbod <behdad@behdad.org>
Fri, 23 Nov 2012 19:09:21 +0000 (14:09 -0500)
src/hb-ot-layout-gpos-table.hh
src/hb-ot-layout-gsub-table.hh
src/hb-ot-layout-gsubgpos-private.hh
src/hb-private.hh

index aebc73f..e0c8ede 100644 (file)
@@ -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;
 
index f82663a..032abb0 100644 (file)
@@ -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;
 
index 16476e9..55ea9ca 100644 (file)
@@ -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],
index 42c0259..5c53591 100644 (file)
@@ -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> {