[iter] Warning fix
authorBehdad Esfahbod <behdad@behdad.org>
Wed, 30 Jan 2019 22:54:23 +0000 (14:54 -0800)
committerBehdad Esfahbod <behdad@behdad.org>
Wed, 30 Jan 2019 22:54:23 +0000 (14:54 -0800)
Not sure why I don't get it, but this warning:

warning: base class ‘struct hb_iter_fallback_mixin_t<hb_array_t<const OT::UVSMapping>, const OT::UVSMapping&>’ should be explicitly initialized in the copy constructor [-Wextra]

src/hb-iter.hh

index 5238b35..105379e 100644 (file)
@@ -172,7 +172,9 @@ struct hb_iter_with_fallback_t :
 {
   protected:
   hb_iter_with_fallback_t () {}
-  hb_iter_with_fallback_t (const hb_iter_with_fallback_t &o HB_UNUSED) {}
+  hb_iter_with_fallback_t (const hb_iter_with_fallback_t &o HB_UNUSED) :
+    hb_iter_t<iter_t, item_t> (o),
+    hb_iter_fallback_mixin_t<iter_t, item_t> (o) {}
   void operator = (const hb_iter_with_fallback_t &o HB_UNUSED) {}
 };