summaryrefslogtreecommitdiff
path: root/src/static_libs
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-08-04 10:10:12 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-08-04 10:19:27 +0900
commit932ae95a4e537916fe66952bdadf8928b7c4661e (patch)
treea0df1efb21d208839cf15f5f29e7d9cf0c6537ff /src/static_libs
parent12278d27de5cf5ade3b45b0b760567f3ce0ef83f (diff)
efl src - mark fallthrough switch statements in 3rd party code
in code we importend that doesnt use eina we have warnings of fallthroughs. all o them are commented to be fallthrough so add the attribute there too to have fewer warnings.
Diffstat (limited to 'src/static_libs')
-rw-r--r--src/static_libs/http-parser/http_parser.c6
-rw-r--r--src/static_libs/libunibreak/wordbreak.c16
2 files changed, 20 insertions, 2 deletions
diff --git a/src/static_libs/http-parser/http_parser.c b/src/static_libs/http-parser/http_parser.c
index 9695525..cbe445b 100644
--- a/src/static_libs/http-parser/http_parser.c
+++ b/src/static_libs/http-parser/http_parser.c
@@ -2119,6 +2119,12 @@ http_parser_parse_url(const char *buf, size_t buflen, int is_connect,
2119 case s_req_server_with_at: 2119 case s_req_server_with_at:
2120 found_at = 1; 2120 found_at = 1;
2121 2121
2122#ifndef __has_attribute
2123# define __has_attribute(x) 0
2124#endif
2125#if __has_attribute(fallthrough)
2126 __attribute__((fallthrough));
2127#endif
2122 /* FALLTROUGH */ 2128 /* FALLTROUGH */
2123 case s_req_server: 2129 case s_req_server:
2124 uf = UF_HOST; 2130 uf = UF_HOST;
diff --git a/src/static_libs/libunibreak/wordbreak.c b/src/static_libs/libunibreak/wordbreak.c
index 063badc..d90d77b 100644
--- a/src/static_libs/libunibreak/wordbreak.c
+++ b/src/static_libs/libunibreak/wordbreak.c
@@ -210,7 +210,13 @@ static void set_wordbreaks(
210 posLast = posCur; 210 posLast = posCur;
211 break; 211 break;
212 } 212 }
213 /* Fall off */ 213#ifndef __has_attribute
214# define __has_attribute(x) 0
215#endif
216#if __has_attribute(fallthrough)
217 __attribute__((fallthrough));
218#endif
219 /* Fall off */
214 220
215 case WBP_Newline: 221 case WBP_Newline:
216 /* WB3a,3b */ 222 /* WB3a,3b */
@@ -323,7 +329,13 @@ static void set_wordbreaks(
323 wbcSeqStart = wbcCur; 329 wbcSeqStart = wbcCur;
324 posLast = posCur; 330 posLast = posCur;
325 } 331 }
326 /* No break on purpose */ 332#ifndef __has_attribute
333# define __has_attribute(x) 0
334#endif
335#if __has_attribute(fallthrough)
336 __attribute__((fallthrough));
337#endif
338 /* No break on purpose */
327 case WBP_MidNumLet: 339 case WBP_MidNumLet:
328 if (((wbcLast == WBP_ALetter) || 340 if (((wbcLast == WBP_ALetter) ||
329 (wbcLast == WBP_Hebrew_Letter)) || /* WB6,7 */ 341 (wbcLast == WBP_Hebrew_Letter)) || /* WB6,7 */