diff options
| author | Thomas Huth | 2020-12-11 16:24:24 +0100 |
|---|---|---|
| committer | Thomas Huth | 2020-12-18 09:14:23 +0100 |
| commit | d84568b773fe1fc469c4d8419c3545be52eec82c (patch) | |
| tree | 852e4d7439e40e2609041c5fb00746225c549db2 /bsd-user | |
| parent | target/sparc/win_helper: silence the compiler warnings (diff) | |
| download | qemu-d84568b773fe1fc469c4d8419c3545be52eec82c.tar.gz qemu-d84568b773fe1fc469c4d8419c3545be52eec82c.tar.xz qemu-d84568b773fe1fc469c4d8419c3545be52eec82c.zip | |
tcg/optimize: Add fallthrough annotations
To be able to compile this file with -Werror=implicit-fallthrough,
we need to add some fallthrough annotations to the case statements
that might fall through. Unfortunately, the typical "/* fallthrough */"
comments do not work here as expected since some case labels are
wrapped in macros and the compiler fails to match the comments in
this case. But using __attribute__((fallthrough)) seems to work fine,
so let's use that instead (by introducing a new QEMU_FALLTHROUGH
macro in our compiler.h header file).
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20201211152426.350966-11-thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'bsd-user')
0 files changed, 0 insertions, 0 deletions
