There is few places where code wants to fallthrough, label them so it is known that it is expected. Detected with -Wimplicit-fallthrough
Signed-off-by: Amadeusz Sławiński amade@asmblr.net --- drivers/adb_bus.c | 2 +- libc/vsprintf.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/adb_bus.c b/drivers/adb_bus.c index 1aa442a..acd59b3 100644 --- a/drivers/adb_bus.c +++ b/drivers/adb_bus.c @@ -248,7 +248,7 @@ int adb_cmd (adb_dev_t *dev, uint8_t cmd, uint8_t reg, break; case ADB_LISTEN: memcpy(adb_send + 1, buf, len); - /* No break here */ + /* fallthrough */ case ADB_TALK: adb_send[0] = (dev->addr << 4) | cmd | reg; break; diff --git a/libc/vsprintf.c b/libc/vsprintf.c index 29ec7b9..ed4d38a 100644 --- a/libc/vsprintf.c +++ b/libc/vsprintf.c @@ -333,6 +333,7 @@ int vsnprintf(char *buf, size_t size, const char *fmt, va_list args)
case 'X': flags |= LARGE; + /* fallthrough */ case 'x': base = 16; break;