aboutsummaryrefslogtreecommitdiff
path: root/bsd-user
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2020-12-17 13:57:24 +0100
committerThomas Huth <thuth@redhat.com>2020-12-18 09:15:47 +0100
commit484bed05748d572a851e08412e4fb6bca8814342 (patch)
tree9a45dc5659e552aa8eb478109765d02888d2316b /bsd-user
parent4f07e71bad905acc40771b81759ff10850325d99 (diff)
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 <richard.henderson@linaro.org> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'bsd-user')
-rw-r--r--bsd-user/main.c1
1 files changed, 1 insertions, 0 deletions
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];