ndp.c: add switch/case fallthrough comments
authorFelix Fietkau <nbd@nbd.name>
Thu, 4 May 2017 13:51:53 +0000 (15:51 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 4 May 2017 13:51:54 +0000 (15:51 +0200)
Fixes gcc 7 build errors

Signed-off-by: Felix Fietkau <nbd@nbd.name>
src/ndp.c

index 366522b63833e1dd3f65ff9e96b9b2e8b7b896fe..b68626276daecddccea5906cf5630090759bca4f 100644 (file)
--- a/src/ndp.c
+++ b/src/ndp.c
@@ -450,6 +450,7 @@ static int cb_rtnl_valid(struct nl_msg *msg, _unused void *arg)
 
        case RTM_NEWADDR:
                add = true;
+               /* fall through */
        case RTM_DELADDR: {
                struct ifaddrmsg *ifa = nlmsg_data(hdr);
                struct nlattr *nla[__IFA_MAX];
@@ -490,6 +491,7 @@ static int cb_rtnl_valid(struct nl_msg *msg, _unused void *arg)
 
        case RTM_NEWNEIGH:
                add = true;
+               /* fall through */
        case RTM_DELNEIGH: {
                struct ndmsg *ndm = nlmsg_data(hdr);
                struct nlattr *nla[__NDA_MAX];