]> Git Repo - qemu.git/commitdiff
bsd-user: Silence warnings about missing fallthrough statement
authorThomas Huth <[email protected]>
Thu, 17 Dec 2020 12:57:24 +0000 (13:57 +0100)
committerThomas Huth <[email protected]>
Fri, 18 Dec 2020 08:15:47 +0000 (09:15 +0100)
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[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Signed-off-by: Thomas Huth <[email protected]>
bsd-user/main.c

index 0a918e8f746e7997ffd0b40e8d5010a8de73e009..9c700c6234506664b53e2586c69ebc2dbf420560 100644 (file)
@@ -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];
This page took 0.030141 seconds and 4 git commands to generate.