diff options
author | Philippe Mathieu-Daudé <philmd@redhat.com> | 2019-12-18 20:25:23 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-01-24 20:59:08 +0100 |
commit | f70fe185f9045066b9fc4d4a72d57ed83ba65566 (patch) | |
tree | 558363072933c7c51a65dd5ca9ea18ce035bf158 /block | |
parent | ada44065167b1337e3e4bdbb3c310b197405bf77 (diff) | |
download | qemu-f70fe185f9045066b9fc4d4a72d57ed83ba65566.zip qemu-f70fe185f9045066b9fc4d4a72d57ed83ba65566.tar.gz qemu-f70fe185f9045066b9fc4d4a72d57ed83ba65566.tar.bz2 |
hw/timer/aspeed_timer: Add a fall through comment
Reported by GCC9 when building with CFLAG -Wimplicit-fallthrough=2:
hw/timer/aspeed_timer.c: In function ‘aspeed_timer_set_value’:
hw/timer/aspeed_timer.c:283:24: error: this statement may fall through [-Werror=implicit-fallthrough=]
283 | if (old_reload || !t->reload) {
| ~~~~~~~~~~~^~~~~~~~~~~~~
hw/timer/aspeed_timer.c:287:5: note: here
287 | case TIMER_REG_STATUS:
| ^~~~
cc1: all warnings being treated as errors
Add the missing fall through comment.
Fixes: 1403f364472
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20191218192526.13845-4-philmd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions