gatchat: Reword the fall through cases to avoid compiler warnings

This commit is contained in:
Marcel Holtmann 2017-07-11 10:44:15 -07:00
parent 9cdcf72994
commit 3472aa67a6
3 changed files with 9 additions and 4 deletions

View File

@ -543,7 +543,7 @@ static void at_f_cb(GAtServer *server, GAtServerRequestType type,
G_AT_SERVER_RESULT_ERROR); G_AT_SERVER_RESULT_ERROR);
return; return;
} }
/* intentional fallback here */ /* fall through */
case G_AT_SERVER_REQUEST_TYPE_COMMAND_ONLY: case G_AT_SERVER_REQUEST_TYPE_COMMAND_ONLY:
/* default behavior on AT&F same as ATZ */ /* default behavior on AT&F same as ATZ */

View File

@ -401,9 +401,11 @@ static enum rcr_result ipcp_client_rcr(struct ipcp_data *ipcp,
break; break;
/* /*
* Fall through, reject IP_ADDRESS if peer sends * Reject IP_ADDRESS if peer sends us 0 (expecting
* us 0 (expecting us to provide its IP address) * us to provide its IP address)
*/ */
/* fall through */
default: default:
if (options == NULL) { if (options == NULL) {
guint16 max_len = ntohs(packet->length) - 4; guint16 max_len = ntohs(packet->length) - 4;

View File

@ -189,9 +189,12 @@ static enum rcr_result ipv6cp_client_rcr(struct ipv6cp_data *ipv6cp,
if (ipv6cp->peer_addr != 0) if (ipv6cp->peer_addr != 0)
break; break;
/* /*
* Fall through, reject zero Interface ID * Reject zero Interface ID
*/ */
/* fall through */
default: default:
if (options == NULL) { if (options == NULL) {
guint16 max_len = ntohs(packet->length) - 4; guint16 max_len = ntohs(packet->length) - 4;