Fix compiler warnings and errors in GCC.

This commit is contained in:
Alex Helfet 2017-03-22 17:40:05 +00:00
parent 462f6eb9a8
commit 0be620602a
3 changed files with 27 additions and 4 deletions

View file

@ -25,6 +25,10 @@ struct check_segment_alignment {
};
static struct capn_segment *create(void *u, uint32_t id, int sz) {
// Silence warnings about unused parameters.
UNUSED(u);
UNUSED(id);
struct capn_segment *s;
sz += sizeof(*s);
if (sz < 4096) {