diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2017-09-14 14:30:24 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2017-09-14 14:30:24 +0400 |
commit | e2b9f6762cc55f8723efaf50098e09edb3ee9570 (patch) | |
tree | a58fe011293783fb157532a7f5cfccf1b3d39465 /strings | |
parent | c94fb7b7c18ce058060d377980aa269c24537207 (diff) | |
download | mariadb-git-e2b9f6762cc55f8723efaf50098e09edb3ee9570.tar.gz |
Make compiler happy with the 'fall through' comments.
Diffstat (limited to 'strings')
-rw-r--r-- | strings/json_lib.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/strings/json_lib.c b/strings/json_lib.c index 1743fce83d0..f666d95985b 100644 --- a/strings/json_lib.c +++ b/strings/json_lib.c @@ -1139,21 +1139,21 @@ int json_path_setup(json_path_t *p, case PS_EKY: p->last_step->key_end= p->s.c_str - c_len; state= PS_KEY; - /* Note no 'continue' here. */ + /* fall through */ case PS_KEY: p->last_step++; if (p->last_step - p->steps >= JSON_DEPTH_LIMIT) return p->s.error= JE_DEPTH; p->types_used|= p->last_step->type= JSON_PATH_KEY | double_wildcard; double_wildcard= JSON_PATH_KEY_NULL; - /* Note no 'continue' here. */ + /* fall through */ case PS_KEYX: p->last_step->key= p->s.c_str; continue; case PS_EAR: p->last_step->key_end= p->s.c_str - c_len; state= PS_AR; - /* Note no 'continue' here. */ + /* fall through */ case PS_AR: p->last_step++; if (p->last_step - p->steps >= JSON_DEPTH_LIMIT) @@ -1705,6 +1705,7 @@ int json_get_path_next(json_engine_t *je, json_path_t *p) return 1; /* Now we have je.state == JST_VALUE, so let's handle it. */ + /* fall through */ case JST_VALUE: if (json_read_value(je)) return 1; |