Add FALLTHRU comment to handle GCC7 warnings.

This commit is contained in:
marxin
2017-03-21 08:42:11 +01:00
parent 82f5a4ab29
commit 014924ba89
3 changed files with 13 additions and 11 deletions

View File

@@ -677,6 +677,7 @@ int64_t json_object_get_int64(const struct json_object *jso)
case json_type_string:
if (json_parse_int64(get_string_component(jso), &cint) == 0)
return cint;
/* FALLTHRU */
default:
return 0;
}