From: Thomas Huth Date: Thu, 17 Dec 2020 12:57:24 +0000 (+0100) Subject: bsd-user: Silence warnings about missing fallthrough statement X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=484bed05748d572a851e08412e4fb6bca8814342;p=qmiga%2Fqemu.git 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. Message-Id: <20201217154138.1547274-1-thuth@redhat.com> Reviewed-by: Richard Henderson Signed-off-by: Thomas Huth --- diff --git a/bsd-user/main.c b/bsd-user/main.c index 0a918e8f74..9c700c6234 100644 --- a/bsd-user/main.c +++ b/bsd-user/main.c @@ -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];