From 9578c44ea226bfd0e230bc60de16f328c40ba557 Mon Sep 17 00:00:00 2001 From: Garret Rieger Date: Fri, 29 Jul 2022 21:58:24 +0000 Subject: [PATCH] [repacker] add HB_FALLTRHOUGH. --- src/graph/pairpos-graph.hh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/graph/pairpos-graph.hh b/src/graph/pairpos-graph.hh index 678c4ba1f..9b146fcc1 100644 --- a/src/graph/pairpos-graph.hh +++ b/src/graph/pairpos-graph.hh @@ -265,8 +265,8 @@ struct PairPos : public OT::Layout::GPOS_impl::PairPos case 2: return ((PairPosFormat2*)(&u.format2))->split_subtables (c, this_index); #ifndef HB_NO_BORING_EXPANSION - case 3: - case 4: + case 3: HB_FALLTHROUGH; + case 4: HB_FALLTHROUGH; // Don't split 24bit PairPos's. #endif default: @@ -284,8 +284,10 @@ struct PairPos : public OT::Layout::GPOS_impl::PairPos return ((PairPosFormat1*)(&u.format1))->sanitize (vertex); case 2: return ((PairPosFormat2*)(&u.format2))->sanitize (vertex); - case 3: - case 4: +#ifndef HB_NO_BORING_EXPANSION + case 3: HB_FALLTHROUGH; + case 4: HB_FALLTHROUGH; +#endif default: // We don't handle format 3 and 4 here. return false;