diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2018-11-08 17:36:08 +0000 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2018-11-09 12:18:59 +0000 |
commit | df02d9a8e299d864fbd287f342999a4792dafc8c (patch) | |
tree | 22c90e23cf9d351f648d3223f938bd7d3271adee /src/static_libs | |
parent | 8292e8c937ba9d4a9f67f873c9f5b1e7579f1281 (diff) | |
download | efl-df02d9a8e299d864fbd287f342999a4792dafc8c.tar.gz |
libunibreak - warn - add fallthrough attributes to minimize warnings
Diffstat (limited to 'src/static_libs')
-rw-r--r-- | src/static_libs/libunibreak/wordbreak.c | 10 |
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( posLast = posCur; break; } - /* Fall off */ +#if __has_attribute(fallthrough) + __attribute__((fallthrough)); +#endif + /* Fall off */ case WBP_Newline: /* WB3a,3b */ @@ -322,7 +325,10 @@ static void set_wordbreaks( wbcSeqStart = wbcCur; posLast = posCur; } - /* No break on purpose */ +#if __has_attribute(fallthrough) + __attribute__((fallthrough)); +#endif + /* No break on purpose */ case WBP_MidNumLet: if (((wbcLast == WBP_ALetter) || (wbcLast == WBP_Hebrew_Letter)) || /* WB6,7 */ |