Fix -Werror=implicit-fallthrough on arm-none-eabi-gcc 7.1.0

BMP280: fix -Werror=implicit-fallthrough on arm-none-eabi-gcc 7

gnss: fix -Werror=implicit-fallthrough on arm-none-eabi-gcc 7

fmu: fix -Werror=implicit-fallthrough on arm-none-eabi-gcc 7

timer.c: fix -Werror=implicit-fallthrough on arm-none-eabi-gcc 7

px4cannode_led: fix -Werror=implicit-fallthrough on arm-none-eabi-gcc 7

Fix -Werror=implicit-fallthrough on gcc7
This commit is contained in:
Julien Lecoeur
2017-07-18 08:24:37 +02:00
committed by Beat Küng
parent d477b1f0f4
commit abcb920df4
7 changed files with 23 additions and 5 deletions
+2 -1
View File
@@ -220,7 +220,8 @@ void __wrap_sched_process_timer(void)
case Repeating:
timers[t].count = timers[t].reload;
/* fall through to callback */
/* FALLTHROUGH */
/* to callback */
case Timeout:
if (timers[t].usr.cb) {
timers[t].usr.cb(t, timers[t].usr.context);