summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
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