Comment intentional switch fallthroughs

This commit is contained in:
Jfreegman 2016-09-07 17:48:01 -04:00
parent a35be20e6a
commit 27a1626084
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63
3 changed files with 4 additions and 4 deletions

View File

@ -682,7 +682,7 @@ void handle_init (MSICall *call, const MSIMessage *msg)
} }
break; break;
case msi_CallRequested: case msi_CallRequested: // fall-through
case msi_CallRequesting: { case msi_CallRequesting: {
LOGGER_WARNING(call->session->messenger->log, "Session: %p Invalid state on 'init'"); LOGGER_WARNING(call->session->messenger->log, "Session: %p Invalid state on 'init'");
call->error = msi_EInvalidState; call->error = msi_EInvalidState;
@ -738,7 +738,7 @@ void handle_push (MSICall *call, const MSIMessage *msg)
break; break;
/* Pushes during initialization state are ignored */ /* Pushes during initialization state are ignored */
case msi_CallInactive: case msi_CallInactive: // fall-through
case msi_CallRequested: { case msi_CallRequested: {
LOGGER_WARNING(call->session->messenger->log, "Ignoring invalid push"); LOGGER_WARNING(call->session->messenger->log, "Ignoring invalid push");
} }

View File

@ -2158,7 +2158,7 @@ static int handle_packet(void *object, int i, const uint8_t *temp, uint16_t len,
break; break;
} }
case PACKET_ID_MESSAGE: case PACKET_ID_MESSAGE: // fall-through
case PACKET_ID_ACTION: { case PACKET_ID_ACTION: {
if (data_length == 0) { if (data_length == 0) {
break; break;

View File

@ -1058,7 +1058,7 @@ bool tox_file_seek(Tox *tox, uint32_t friend_number, uint32_t file_number, uint6
SET_ERROR_PARAMETER(error, TOX_ERR_FILE_SEEK_NOT_FOUND); SET_ERROR_PARAMETER(error, TOX_ERR_FILE_SEEK_NOT_FOUND);
return 0; return 0;
case -4: case -4: // fall-through
case -5: case -5:
SET_ERROR_PARAMETER(error, TOX_ERR_FILE_SEEK_DENIED); SET_ERROR_PARAMETER(error, TOX_ERR_FILE_SEEK_DENIED);
return 0; return 0;