Browse Source

json: fix fall through warnings

pull/58/head
Rémi Denis-Courmont 9 years ago
parent
commit
894bab1c0a
  1. 2
      modules/misc/webservices/json.c

2
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);

Loading…
Cancel
Save