From b8783c85ac5dd9ea8f5a66eacb92dfcfbf649a6d Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 3 Nov 2010 11:50:21 -0400 Subject: [PATCH] Fix unreachable-code warning --- src/hb-ot-layout-gpos-private.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hb-ot-layout-gpos-private.hh b/src/hb-ot-layout-gpos-private.hh index bcdbfe809..0dc8d177a 100644 --- a/src/hb-ot-layout-gpos-private.hh +++ b/src/hb-ot-layout-gpos-private.hh @@ -979,8 +979,8 @@ struct MarkBasePosFormat1 } while (_hb_ot_layout_skip_mark (c->layout->face, &c->buffer->info[j], LookupFlag::IgnoreMarks, &property)); /* The following assertion is too strong, so we've disabled it. */ - if (false && !(property & HB_OT_LAYOUT_GLYPH_CLASS_BASE_GLYPH)) - return false; + if (!(property & HB_OT_LAYOUT_GLYPH_CLASS_BASE_GLYPH)) + {/*return false;*/} unsigned int base_index = (this+baseCoverage) (c->buffer->info[j].codepoint); if (base_index == NOT_COVERED) @@ -1081,8 +1081,8 @@ struct MarkLigPosFormat1 } while (_hb_ot_layout_skip_mark (c->layout->face, &c->buffer->info[j], LookupFlag::IgnoreMarks, &property)); /* The following assertion is too strong, so we've disabled it. */ - if (false && !(property & HB_OT_LAYOUT_GLYPH_CLASS_LIGATURE)) - return false; + if (!(property & HB_OT_LAYOUT_GLYPH_CLASS_LIGATURE)) + {/*return false;*/} unsigned int lig_index = (this+ligatureCoverage) (c->buffer->info[j].codepoint); if (lig_index == NOT_COVERED)