[vlc-commits] json: fix fall through warnings
Rémi Denis-Courmont
git at videolan.org
Fri Jul 7 20:05:43 CEST 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Jul 7 21:02:14 2017 +0300| [894bab1c0a2dd6cca72629df7426afc1be102dfe] | committer: Rémi Denis-Courmont
json: fix fall through warnings
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=894bab1c0a2dd6cca72629df7426afc1be102dfe
---
modules/misc/webservices/json.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/misc/webservices/json.c b/modules/misc/webservices/json.c
index 26e63e80d9..0afc01c614 100644
--- a/modules/misc/webservices/json.c
+++ b/modules/misc/webservices/json.c
@@ -178,6 +178,7 @@ static int new_value
#define whitespace \
case '\n': ++ cur_line; cur_line_begin = i; \
+ /* fall through */ \
case ' ': case '\t': case '\r'
#define string_add(b) \
@@ -554,6 +555,7 @@ json_value * json_parse_ex (json_settings * settings, const json_char * json, ch
break;
}
+ /* fall through */
default:
sprintf (error, "%d:%d: Unexpected `%c` in object", cur_line, e_off, b);
More information about the vlc-commits
mailing list