[warnings] fix a few warnings introduced with newer version of gcc

Most of the warnings are new, such as needing to mark fallthroughs on
cases explicitly. A few are based on signed vs unsigned comparisons.

Disable one warning that was annoying about comparing null to arguments
marked nonnull.
This commit is contained in:
Travis Geiselbrecht
2018-03-15 14:10:12 -07:00
parent 1d63a772a9
commit 5dea3e1933
15 changed files with 23 additions and 18 deletions

View File

@@ -112,6 +112,7 @@ static int lkb_send(lkb_t *lkb, u8 opcode, const void *data, size_t len) {
break;
}
len = 0;
// fallthrough
default:
lkb->state = STATE_ERROR;
opcode = MSG_FAIL;