diff options
| author | Thomas Huth <thuth@redhat.com> | 2020-12-11 16:24:17 +0100 |
|---|---|---|
| committer | Thomas Huth <thuth@redhat.com> | 2020-12-18 09:14:22 +0100 |
| commit | 216776099b087edfdf8cca3cb3cbfee1edbb12e2 (patch) | |
| tree | 190883e650b7c4cc3196b5ca7d953dfff91244f5 /include/qemu/compiler.h | |
| parent | 51c915674d8cf9de596d96ac31226c4a374fcb95 (diff) | |
| download | focaccia-qemu-216776099b087edfdf8cca3cb3cbfee1edbb12e2.tar.gz focaccia-qemu-216776099b087edfdf8cca3cb3cbfee1edbb12e2.zip | |
hw/rtc/twl92230: Silence warnings about missing fallthrough statements
When compiling with -Werror=implicit-fallthrough, gcc complains about missing fallthrough annotations in this file. Looking at the code, the fallthrough is indeed wanted here, but instead of adding the annotations, it can be done more efficiently by simply calculating the offset with a subtraction instead of increasing a local variable one by one. Signed-off-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-Id: <20201211152426.350966-4-thuth@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'include/qemu/compiler.h')
0 files changed, 0 insertions, 0 deletions