diff options
author | Philippe Mathieu-Daudé <philmd@redhat.com> | 2019-12-18 20:25:24 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-01-24 20:59:08 +0100 |
commit | 174c556c1bb467076d7220428fe3a930ccf077c3 (patch) | |
tree | 5b4744495c56d66f6084fa0933c11fe1d1f2c205 /scripts/qemu-gdb.py | |
parent | f70fe185f9045066b9fc4d4a72d57ed83ba65566 (diff) | |
download | qemu-174c556c1bb467076d7220428fe3a930ccf077c3.zip qemu-174c556c1bb467076d7220428fe3a930ccf077c3.tar.gz qemu-174c556c1bb467076d7220428fe3a930ccf077c3.tar.bz2 |
hw/net/imx_fec: Rewrite fall through comments
GCC9 is confused by this comment when building with CFLAG
-Wimplicit-fallthrough=2:
hw/net/imx_fec.c: In function ‘imx_eth_write’:
hw/net/imx_fec.c:906:12: error: this statement may fall through [-Werror=implicit-fallthrough=]
906 | if (unlikely(single_tx_ring)) {
| ^
hw/net/imx_fec.c:912:5: note: here
912 | case ENET_TDAR: /* FALLTHROUGH */
| ^~~~
cc1: all warnings being treated as errors
Rewrite the comments in the correct place, using 'fall through'
which is recognized by GCC and static analyzers.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20191218192526.13845-5-philmd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/qemu-gdb.py')
0 files changed, 0 insertions, 0 deletions