suppress warnings for some intentional fallthrough cases in switch statements
This commit is contained in:
parent
2c45b0793e
commit
b5021ef57f
|
@ -49,6 +49,7 @@
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|
||||||
#include "../config.h"
|
#include "../config.h"
|
||||||
|
#include "../macros.h"
|
||||||
|
|
||||||
#ifdef USE_IFACEWATCHER
|
#ifdef USE_IFACEWATCHER
|
||||||
|
|
||||||
|
@ -280,6 +281,7 @@ ProcessInterfaceWatchNotify(int s)
|
||||||
switch(nlhdr->nlmsg_type) {
|
switch(nlhdr->nlmsg_type) {
|
||||||
case RTM_DELLINK:
|
case RTM_DELLINK:
|
||||||
is_del = 1;
|
is_del = 1;
|
||||||
|
FALL_THROUGH;
|
||||||
case RTM_NEWLINK:
|
case RTM_NEWLINK:
|
||||||
#if 0
|
#if 0
|
||||||
/* disabled at the moment */
|
/* disabled at the moment */
|
||||||
|
@ -295,6 +297,7 @@ ProcessInterfaceWatchNotify(int s)
|
||||||
break;
|
break;
|
||||||
case RTM_DELADDR:
|
case RTM_DELADDR:
|
||||||
is_del = 1;
|
is_del = 1;
|
||||||
|
FALL_THROUGH;
|
||||||
case RTM_NEWADDR:
|
case RTM_NEWADDR:
|
||||||
/* see /usr/include/linux/netlink.h
|
/* see /usr/include/linux/netlink.h
|
||||||
* and /usr/include/linux/rtnetlink.h */
|
* and /usr/include/linux/rtnetlink.h */
|
||||||
|
|
Loading…
Reference in New Issue