[HarfBuzz] harfbuzz: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Tue Mar 8 20:17:28 UTC 2016


 src/hb-ot-shape-complex-indic.cc |    4 ----
 src/hb-ot-shape-complex-thai.cc  |    1 -
 2 files changed, 5 deletions(-)

New commits:
commit d14fea4bdcc1423fe9a585af3abdefa9605d17e6
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Tue Mar 8 12:16:41 2016 -0800

    Remove default clause in minor switch statements
    
    Bending to clang warnings...
    https://bugs.chromium.org/p/chromium/issues/detail?id=593057

diff --git a/src/hb-ot-shape-complex-indic.cc b/src/hb-ot-shape-complex-indic.cc
index c8fc2b5..1e151a7 100644
--- a/src/hb-ot-shape-complex-indic.cc
+++ b/src/hb-ot-shape-complex-indic.cc
@@ -742,10 +742,6 @@ initial_reordering_consonant_syllable (const hb_ot_shape_plan_t *plan,
 
     switch (indic_plan->config->base_pos)
     {
-      default:
-        assert (false);
-	HB_FALLTHROUGH;
-
       case BASE_POS_LAST:
       {
 	/* -> starting from the end of the syllable, move backwards */
diff --git a/src/hb-ot-shape-complex-thai.cc b/src/hb-ot-shape-complex-thai.cc
index 58392b6..4322b0d 100644
--- a/src/hb-ot-shape-complex-thai.cc
+++ b/src/hb-ot-shape-complex-thai.cc
@@ -139,7 +139,6 @@ thai_pua_shape (hb_codepoint_t u, thai_action_t action, hb_font_t *font)
   };
 
   switch (action) {
-    default: assert (false); HB_FALLTHROUGH;
     case NOP: return u;
     case SD:  pua_mappings = SD_mappings; break;
     case SDL: pua_mappings = SDL_mappings; break;


More information about the HarfBuzz mailing list