From b5021ef57f7b84e68b44f2772b0087cd7ba7d80a Mon Sep 17 00:00:00 2001 From: Paul Chambers Date: Fri, 27 Sep 2019 20:47:53 -0700 Subject: [PATCH] suppress warnings for some intentional fallthrough cases in switch statements --- miniupnpd/linux/ifacewatcher.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/miniupnpd/linux/ifacewatcher.c b/miniupnpd/linux/ifacewatcher.c index 7095a0f..f7456b4 100644 --- a/miniupnpd/linux/ifacewatcher.c +++ b/miniupnpd/linux/ifacewatcher.c @@ -49,6 +49,7 @@ #include #include "../config.h" +#include "../macros.h" #ifdef USE_IFACEWATCHER @@ -280,6 +281,7 @@ ProcessInterfaceWatchNotify(int s) switch(nlhdr->nlmsg_type) { case RTM_DELLINK: is_del = 1; + FALL_THROUGH; case RTM_NEWLINK: #if 0 /* disabled at the moment */ @@ -295,6 +297,7 @@ ProcessInterfaceWatchNotify(int s) break; case RTM_DELADDR: is_del = 1; + FALL_THROUGH; case RTM_NEWADDR: /* see /usr/include/linux/netlink.h * and /usr/include/linux/rtnetlink.h */