added fallthrough for gcc7

This commit is contained in:
Matthias Behr
2017-10-03 09:26:59 +02:00
parent acbcc062f9
commit ec8912bb91
3 changed files with 13 additions and 11 deletions

View File

@@ -552,6 +552,7 @@ int64_t json_object_get_int64(struct json_object *jso)
return jso->o.c_boolean;
case json_type_string:
if (json_parse_int64(jso->o.c_string.str, &cint) == 0) return cint;
// fallthrough
default:
return 0;
}