summaryrefslogtreecommitdiff
path: root/src/static_libs
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-11-08 17:36:08 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-11-09 12:18:59 +0000
commitdf02d9a8e299d864fbd287f342999a4792dafc8c (patch)
tree22c90e23cf9d351f648d3223f938bd7d3271adee /src/static_libs
parent8292e8c937ba9d4a9f67f873c9f5b1e7579f1281 (diff)
libunibreak - warn - add fallthrough attributes to minimize warnings
Diffstat (limited to 'src/static_libs')
-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 aece4b3..017e0fd 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 */