From bada1e94f472e7507a97e7565369841b3d25c9b0 Mon Sep 17 00:00:00 2001 From: Josh Haberman Date: Tue, 28 May 2013 13:44:50 -0700 Subject: Merge from Google-internal development. - Better error reporting for upb::Def setters. - error reporting for upb::Handlers setters. - made the start/endmsg handlers a little less special-cased. --- benchmarks/parsestream.upb.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'benchmarks/parsestream.upb.c') diff --git a/benchmarks/parsestream.upb.c b/benchmarks/parsestream.upb.c index 54aa546..2c5f943 100644 --- a/benchmarks/parsestream.upb.c +++ b/benchmarks/parsestream.upb.c @@ -20,6 +20,7 @@ static void *startsubmsg(void *closure, const void *hd) { } void onmreg(void *c, upb_handlers *h) { + UPB_UNUSED(c); upb_msg_iter i; upb_msg_begin(&i, upb_handlers_msgdef(h)); for(; !upb_msg_done(&i); upb_msg_next(&i)) { @@ -28,7 +29,6 @@ void onmreg(void *c, upb_handlers *h) { upb_handlers_setstartsubmsg(h, f, startsubmsg, NULL, NULL); } } - UPB_UNUSED(c); } static bool initialize() @@ -85,7 +85,8 @@ static size_t run(int i) (void)i; upb_pipeline_reset(&pipeline); if (!upb_bytestream_putstr(sink, input_str, input_len)) { - fprintf(stderr, "Decode error: %s", upb_status_getstr(upb_pipeline_status(&pipeline))); + fprintf(stderr, "Decode error: %s", + upb_status_getstr(upb_pipeline_status(&pipeline))); return 0; } return input_len; -- cgit v1.2.3