|
From: | Thomas Huth |
Subject: | Re: [PULL 07/15] hw/timer: RX62N 8-Bit timer (TMR) |
Date: | Thu, 25 Jun 2020 12:06:29 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 |
On 25/06/2020 11.25, Peter Maydell wrote: [...]
+static uint64_t tmr_read(void *opaque, hwaddr addr, unsigned size) +{In this function Coverity reports a missing "break" (CID 1429977):+ case A_TCORA: + if (size == 1) { + return tmr->tcora[ch]; + } else if (ch == 0) { + return concat_reg(tmr->tcora); + }Here execution can fall through but there is no 'break' or '/* fallthrough */'.
Should we maybe start compiling with -Wimplicit-fallthrough if the compiler supports it, so that we do not always catch these problems after they have been merged?
Thomas
[Prev in Thread] | Current Thread | [Next in Thread] |