From 1733b582579927379bc04a5838add06b76ada427 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Tue, 4 Aug 2009 22:05:19 -0700 Subject: Fix a few small compile warnings. --- src/upb_msg.c | 2 +- src/upb_parse.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/upb_msg.c b/src/upb_msg.c index f74e96d..2e5fdd5 100644 --- a/src/upb_msg.c +++ b/src/upb_msg.c @@ -552,7 +552,7 @@ upb_status_t upb_msg_serialize(struct upb_msg_serialize_state *s, uint8_t *end = buf + len; uint8_t *const start = buf; int i = s->top->field_iter; - int j = s->top->elem_iter; + //int j = s->top->elem_iter; void *msg = s->top->msg; struct upb_msg *m = s->top->m; diff --git a/src/upb_parse.c b/src/upb_parse.c index 4f22e4a..fd76051 100644 --- a/src/upb_parse.c +++ b/src/upb_parse.c @@ -180,8 +180,8 @@ upb_status_t upb_parse(struct upb_parse_state *s, void *_buf, size_t len, } else { if(upb_isstringtype(ft)) str_cb(udata, buf, UPB_MIN(delim_end, end) - buf, delim_end - buf, udesc); - else - ;/* Set a marker for packed arrays. */ + //else + // /* Set a marker for packed arrays. */ buf = delim_end; /* Note that this could be greater than end. */ } } else { /* Scalar (non-delimited) value. */ -- cgit v1.2.3