diff options
| author | Thomas Huth <thuth@redhat.com> | 2020-12-11 16:24:24 +0100 |
|---|---|---|
| committer | Thomas Huth <thuth@redhat.com> | 2020-12-18 09:14:23 +0100 |
| commit | d84568b773fe1fc469c4d8419c3545be52eec82c (patch) | |
| tree | 852e4d7439e40e2609041c5fb00746225c549db2 /scripts/tracetool/backend/syslog.py | |
| parent | 9cf5a9cf60a3c5271dee05b6a81a05fb45bee622 (diff) | |
| download | focaccia-qemu-d84568b773fe1fc469c4d8419c3545be52eec82c.tar.gz focaccia-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 'scripts/tracetool/backend/syslog.py')
0 files changed, 0 insertions, 0 deletions