bsd-user: Silence warnings about missing fallthrough statement
PATCH 1/1 bsd-user: Silence warnings about missing fallthrough statement
When compiling with -Werror=implicit-fallthrough, the compiler complains about a missing fallthrough annotation in this file. Looking at the code, the fallthrough is indeed wanted here, so let's add a proper comment.
Signed-off-by Thomas Huth <[email protected]>
--- bsd-user/main.c | 1 + 1 file changed, 1 insertion(+)
bsd-user/main.c +1 -0
@@ -512,6 +512,7 @@ void cpu_loop(CPUSPARCState *env)case 0x141 :if (bsd_type != target_freebsd) goto badtrap; +/* fallthrough */ case 0x100 :#endif syscall_nr = env->gregs[1 ];
Signature · 1 line
2.27.0
Quoted 8 lines · Thomas Huth
When compiling with -Werror=implicit-fallthrough, the compiler complains about a missing fallthrough annotation in this file. Looking at the code, the fallthrough is indeed wanted here, so let's add a proper comment.
Signed-off-by Thomas Huth <[email protected]>--- bsd-user/main.c | 1 + 1 file changed, 1 insertion(+)
Reviewed-by Richard Henderson <[email protected]>
r~