From d7fe9809f410e1664b29c4482a481c14de8e51a9 Mon Sep 17 00:00:00 2001 From: kimocoder Date: Mon, 20 Jan 2020 08:03:10 +0100 Subject: [PATCH] Better handling of 'fallthrough's --- hal/hal_intf.c | 2 +- os_dep/linux/ioctl_cfg80211.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hal/hal_intf.c b/hal/hal_intf.c index c30fa68..daa42f9 100644 --- a/hal/hal_intf.c +++ b/hal/hal_intf.c @@ -1082,7 +1082,7 @@ s32 c2h_handler(_adapter *adapter, u8 id, u8 seq, u8 plen, u8 *payload) case C2H_EXTEND: sub_id = payload[0]; /* no handle, goto default */ - // Intentional fallthrough + __attribute__ ((__fallthrough__)); default: if (phydm_c2H_content_parsing(adapter_to_phydm(adapter), id, plen, payload) != TRUE) ret = _FAIL; diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c index 4975ac4..54d0e17 100644 --- a/os_dep/linux/ioctl_cfg80211.c +++ b/os_dep/linux/ioctl_cfg80211.c @@ -2471,7 +2471,7 @@ static int cfg80211_rtw_change_iface(struct wiphy *wiphy, case NL80211_IFTYPE_P2P_CLIENT: is_p2p = _TRUE; #endif - // Intentional fallthrough + __attribute__ ((__fallthrough__)); case NL80211_IFTYPE_STATION: networkType = Ndis802_11Infrastructure; @@ -2496,7 +2496,7 @@ static int cfg80211_rtw_change_iface(struct wiphy *wiphy, case NL80211_IFTYPE_P2P_GO: is_p2p = _TRUE; #endif - // Intentional fallthrough + __attribute__ ((__fallthrough__)); case NL80211_IFTYPE_AP: networkType = Ndis802_11APMode;