net: af_unix: mark expected switch fall-through
Subsystems (3)
PATCH 1/1 net: af_unix: mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
Signed-off-by Gustavo A. R. Silva <[email protected]>
---
This code was tested by compilation only (GCC 7.2.0 was used). Please, verify if the actual intention of the code is to fall through.
net/unix/af_unix.c | 1 + 1 file changed, 1 insertion(+)
net/unix/af_unix.c +1 -0
@@ -814,6 +814,7 @@ static int unix_create(struct net *net, struct socket *sock, int protocol,*/ case SOCK_RAW : sock->type =SOCK_DGRAM ; +/* fall through */ case SOCK_DGRAM : sock->ops = &unix_dgram_ops;break ;
Signature · 1 line
2.7.4
From: "Gustavo A. R. Silva" <[email protected]>
Date: Fri, 20 Oct 2017 12:05:30 -0500
Quoted 4 lines
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
Signed-off-by Gustavo A. R. Silva <[email protected]>
Applied.