]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Silence a gcc warning on switch statement fallthrough
authorJouni Malinen <jouni@codeaurora.org>
Tue, 15 May 2018 17:29:00 +0000 (20:29 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 15 May 2018 22:16:35 +0000 (01:16 +0300)
Add an explicit comment noting a previously undocumented fallthrough to
not trigger an implicit-fallthrough warning.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
wpa_supplicant/p2p_supplicant.c

index 6ae3adb83a29fcc3193e9345f8a21ae37b863881..92b6e6085ce9d08328602cbb1bdb47395167f759 100644 (file)
@@ -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;