Fix compiler warnings and errors in GCC.
This commit is contained in:
parent
462f6eb9a8
commit
0be620602a
3 changed files with 27 additions and 4 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue