When compiling with -Werror=implicit-fallthrough, gcc complains about
missing fallthrough annotations in this file. Looking at the code,
the fallthrough is very likely intended here, so add some comments
to silence the compiler warnings.
Fixes: cd1a3f6840e ("Stand-alone TMU emulation code")
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <
20201020153935.54315-3-thuth@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
if (s->feat & TIMER_FEAT_EXTCLK) {
break;
}
+ /* fallthrough */
default:
hw_error("sh_timer_write: Reserved TPSC value\n");
break;
if (s->feat & TIMER_FEAT_EXTCLK) {
break;
}
+ /* fallthrough */
default:
hw_error("sh_timer_write: Reserved CKEG value\n");
break;
if (s->feat & TIMER_FEAT_CAPT) {
break;
}
+ /* fallthrough */
default:
hw_error("sh_timer_write: Reserved ICPE value\n");
break;
s->tcpr = value;
break;
}
+ /* fallthrough */
default:
hw_error("sh_timer_write: Bad offset %x\n", (int)offset);
}