summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/static_libs/libunibreak/wordbreak.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/static_libs/libunibreak/wordbreak.c b/src/static_libs/libunibreak/wordbreak.c
index aece4b3c45..017e0fd091 100644
--- a/src/static_libs/libunibreak/wordbreak.c
+++ b/src/static_libs/libunibreak/wordbreak.c
@@ -209,7 +209,10 @@ static void set_wordbreaks(
209 posLast = posCur; 209 posLast = posCur;
210 break; 210 break;
211 } 211 }
212 /* Fall off */ 212#if __has_attribute(fallthrough)
213 __attribute__((fallthrough));
214#endif
215 /* Fall off */
213 216
214 case WBP_Newline: 217 case WBP_Newline:
215 /* WB3a,3b */ 218 /* WB3a,3b */
@@ -322,7 +325,10 @@ static void set_wordbreaks(
322 wbcSeqStart = wbcCur; 325 wbcSeqStart = wbcCur;
323 posLast = posCur; 326 posLast = posCur;
324 } 327 }
325 /* No break on purpose */ 328#if __has_attribute(fallthrough)
329 __attribute__((fallthrough));
330#endif
331 /* No break on purpose */
326 case WBP_MidNumLet: 332 case WBP_MidNumLet:
327 if (((wbcLast == WBP_ALetter) || 333 if (((wbcLast == WBP_ALetter) ||
328 (wbcLast == WBP_Hebrew_Letter)) || /* WB6,7 */ 334 (wbcLast == WBP_Hebrew_Letter)) || /* WB6,7 */