OSDN Git Service

target/i386/kvm: Add missing fallthrough comment
authorThomas Huth <thuth@redhat.com>
Fri, 11 Sep 2020 12:53:01 +0000 (14:53 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Fri, 11 Sep 2020 19:25:59 +0000 (21:25 +0200)
Let's make this file compilable with -Werror=implicit-fallthrough :
Looking at the code, it seems like the fallthrough is intended here,
so we should add the corresponding "/* fallthrough */" comment here.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20200911125301.413081-1-thuth@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
target/i386/kvm.c

index 3d640a8..d87af57 100644 (file)
@@ -1568,6 +1568,7 @@ int kvm_arch_init_vcpu(CPUState *cs)
             if (env->nr_dies < 2) {
                 break;
             }
+            /* fallthrough */
         case 4:
         case 0xb:
         case 0xd: