diff options
author | Josh Haberman <jhaberman@gmail.com> | 2015-05-08 17:03:20 -0700 |
---|---|---|
committer | Josh Haberman <jhaberman@gmail.com> | 2015-05-08 17:03:20 -0700 |
commit | fa10302a502de38a66ed921eeeacb4107e9572a2 (patch) | |
tree | 5ed1bca20a889458c431da37c701aae131e15c4a /upb/json/parser.rl | |
parent | 3bd691a4975b2267ff04611507e766a7f9f87e83 (diff) | |
parent | bd7ea8c6f1854aa37b7792c6f23334ffc0fd94ff (diff) |
Merge from open-source development.
Diffstat (limited to 'upb/json/parser.rl')
-rw-r--r-- | upb/json/parser.rl | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/upb/json/parser.rl b/upb/json/parser.rl index 3a400ea..81d1514 100644 --- a/upb/json/parser.rl +++ b/upb/json/parser.rl @@ -1150,7 +1150,7 @@ static void end_object(upb_json_parser *p) { main := ws object ws; }%% -%% write data; +%% write data noerror nofinal; size_t parse(void *closure, const void *hd, const char *buf, size_t size, const upb_bufhandle *handle) { @@ -1188,6 +1188,13 @@ error: bool end(void *closure, const void *hd) { UPB_UNUSED(closure); UPB_UNUSED(hd); + + // Prevent compile warning on unused static constants. + UPB_UNUSED(json_start); + UPB_UNUSED(json_en_number_machine); + UPB_UNUSED(json_en_string_machine); + UPB_UNUSED(json_en_value_machine); + UPB_UNUSED(json_en_main); return true; } |