Skip to content

Commit

Permalink
Make compiler happy with the 'fall through' comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Botchkov committed Sep 14, 2017
1 parent c94fb7b commit e2b9f67
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions strings/json_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit e2b9f67

Please sign in to comment.