Skip to contentSkip to conversation

bsd-user: Silence warnings about missing fallthrough statement

PATCH In review Thomas Huth 2 participants 2 messages Dec 17, 2020

lore
Share & tools
lore
#0 lore raw

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.

---
 bsd-user/main.c | 1 +
 1 file changed, 1 insertion(+)
bsd-user/main.c +1 -0
index 0a918e8f74..9c700c6234 100644
@@ -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