Silence new gcc warnings on switch statement fallthroughs
Reword the comments to make gcc 8.1 recognize these as designed cases and not trigger implicit-fallthrough warnings. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
79467d74fd
commit
d267bdf9bd
6 changed files with 7 additions and 7 deletions
|
@ -1516,7 +1516,7 @@ static void eap_fast_process_msg(struct eap_sm *sm, void *priv,
|
|||
if (eap_fast_process_phase1(sm, data))
|
||||
break;
|
||||
|
||||
/* fall through to PHASE2_START */
|
||||
/* fall through */
|
||||
case PHASE2_START:
|
||||
eap_fast_process_phase2_start(sm, data);
|
||||
break;
|
||||
|
|
|
@ -223,7 +223,7 @@ static struct wpabuf * eap_ikev2_buildReq(struct eap_sm *sm, void *priv, u8 id)
|
|||
}
|
||||
data->out_used = 0;
|
||||
}
|
||||
/* pass through */
|
||||
/* fall through */
|
||||
case WAIT_FRAG_ACK:
|
||||
return eap_ikev2_build_msg(data, id);
|
||||
case FRAG_ACK:
|
||||
|
|
|
@ -257,7 +257,7 @@ static struct wpabuf * eap_wsc_buildReq(struct eap_sm *sm, void *priv, u8 id)
|
|||
}
|
||||
data->out_used = 0;
|
||||
}
|
||||
/* pass through */
|
||||
/* fall through */
|
||||
case WAIT_FRAG_ACK:
|
||||
return eap_wsc_build_msg(data, id);
|
||||
case FRAG_ACK:
|
||||
|
|
|
@ -49,7 +49,7 @@ static Boolean format_session_state_extra(const union fst_event_extra *extra,
|
|||
if (ss->extra.to_initial.reject_code != WLAN_STATUS_SUCCESS)
|
||||
os_snprintf(reject_str, sizeof(reject_str), "%u",
|
||||
ss->extra.to_initial.reject_code);
|
||||
/* no break */
|
||||
/* fall through */
|
||||
case REASON_TEARDOWN:
|
||||
case REASON_SWITCH:
|
||||
switch (ss->extra.to_initial.initiator) {
|
||||
|
|
|
@ -904,13 +904,13 @@ static void radius_client_receive(int sock, void *eloop_ctx, void *sock_ctx)
|
|||
switch (res) {
|
||||
case RADIUS_RX_PROCESSED:
|
||||
radius_msg_free(msg);
|
||||
/* continue */
|
||||
/* fall through */
|
||||
case RADIUS_RX_QUEUED:
|
||||
radius_client_msg_free(req);
|
||||
return;
|
||||
case RADIUS_RX_INVALID_AUTHENTICATOR:
|
||||
invalid_authenticator++;
|
||||
/* continue */
|
||||
/* fall through */
|
||||
case RADIUS_RX_UNKNOWN:
|
||||
/* continue with next handler */
|
||||
break;
|
||||
|
|
|
@ -437,7 +437,7 @@ static void plink_timer(void *eloop_ctx, void *user_data)
|
|||
break;
|
||||
}
|
||||
reason = WLAN_REASON_MESH_MAX_RETRIES;
|
||||
/* fall through on else */
|
||||
/* fall through */
|
||||
|
||||
case PLINK_CNF_RCVD:
|
||||
/* confirm timer */
|
||||
|
|
Loading…
Reference in a new issue