From ce2a9644bd6781b947ed05e1f42230ae90748b17 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 15 May 2018 20:29:00 +0300 Subject: [PATCH] Silence a gcc warning on switch statement fallthrough Add an explicit comment noting a previously undocumented fallthrough to not trigger an implicit-fallthrough warning. Signed-off-by: Jouni Malinen --- wpa_supplicant/p2p_supplicant.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c index 6ae3adb83..92b6e6085 100644 --- a/wpa_supplicant/p2p_supplicant.c +++ b/wpa_supplicant/p2p_supplicant.c @@ -748,6 +748,7 @@ static u8 p2ps_group_capability(void *ctx, u8 incoming, u8 role, conncap = P2PS_SETUP_GROUP_OWNER; goto grp_owner; } + /* fall through */ default: return P2PS_SETUP_NONE; -- 2.47.3