Fix a few small compile warnings.

pull/13171/head
Joshua Haberman 16 years ago
parent 84cd1538ee
commit 1733b58257
  1. 2
      src/upb_msg.c
  2. 4
      src/upb_parse.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;

@ -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. */

Loading…
Cancel
Save