From 0ef74ec9c86a35adcba042f4810ef6b53d7efaaf Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 4 May 2017 15:51:53 +0200 Subject: ndp.c: add switch/case fallthrough comments Fixes gcc 7 build errors Signed-off-by: Felix Fietkau --- src/ndp.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ndp.c') diff --git a/src/ndp.c b/src/ndp.c index 366522b..b686262 100644 --- 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]; -- cgit v1.2.3