summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2013-05-28 13:44:50 -0700
committerJosh Haberman <jhaberman@gmail.com>2013-05-28 13:44:50 -0700
commitbada1e94f472e7507a97e7565369841b3d25c9b0 (patch)
tree1fe0882b497206db03e21eb87c975d5e400fe097 /benchmarks
parentee3a3191cda5faae5dcc9cd1526292c57f2be343 (diff)
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.
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/parsestream.upb.c5
1 files changed, 3 insertions, 2 deletions
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;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback