]> git.proxmox.com Git - mirror_qemu.git/commit
target/i386: silence the compiler warnings in gen_shiftd_rm_T1
authorChen Qun <kuhn.chenqun@huawei.com>
Fri, 11 Dec 2020 15:24:19 +0000 (16:24 +0100)
committerThomas Huth <thuth@redhat.com>
Fri, 18 Dec 2020 08:14:23 +0000 (09:14 +0100)
commitbdddc1c425e8e39031bf726b54a6e7388337a7f0
tree4ccaf1c149cbd5e60c2194fa5f0c7c89fdec80a7
parent30982862b2d81e7b4a58bac319075d343c36e06a
target/i386: silence the compiler warnings in gen_shiftd_rm_T1

The current "#ifdef TARGET_X86_64" statement affects
the compiler's determination of fall through.

When using -Wimplicit-fallthrough in our CFLAGS, the compiler showed warning:
target/i386/translate.c: In function ‘gen_shiftd_rm_T1’:
target/i386/translate.c:1773:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
         if (is_right) {
            ^
target/i386/translate.c:1782:5: note: here
     case MO_32:
     ^~~~

Reported-by: Euler Robot <euler.robot@huawei.com>
Signed-off-by: Chen Qun <kuhn.chenqun@huawei.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20201211152426.350966-6-thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
target/i386/tcg/translate.c