Thread (2 messages) 2 messages, 2 authors, 2019-07-29

Re: [PATCH] net: hamradio: baycom_epp: Mark expected switch fall-through

From: David Miller <davem@davemloft.net>
Date: 2019-07-29 21:09:22
Also in: linux-hams, lkml

From: "Gustavo A. R. Silva" <redacted>
Date: Mon, 29 Jul 2019 15:12:31 -0500
Mark switch cases where we are expecting to fall through.

This patch fixes the following warning (Building: i386):

drivers/net/hamradio/baycom_epp.c: In function ‘transmit’:
drivers/net/hamradio/baycom_epp.c:491:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
    if (i) {
       ^
drivers/net/hamradio/baycom_epp.c:504:3: note: here
   default:  /* fall through */
   ^~~~~~~

Notice that, in this particular case, the code comment is
modified in accordance with what GCC is expecting to find.

Signed-off-by: Gustavo A. R. Silva <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help