guideline: Make explicit fallthrough cases

-Wimplicit-fallthrough=2 requires a fallthrough comment or a compiler
to tells gcc that this happens intentionally.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
Flavio Ceolin 2020-08-21 13:45:52 -07:00 committed by Anas Nashif
commit 0aaae4a039
46 changed files with 105 additions and 101 deletions

View file

@ -587,17 +587,17 @@ static void mcux_flexcan_transfer_callback(CAN_Type *base,
switch (status) {
case kStatus_FLEXCAN_UnHandled:
/* fallthrough */
__fallthrough;
case kStatus_FLEXCAN_ErrorStatus:
mcux_flexcan_transfer_error_status(dev, result);
break;
case kStatus_FLEXCAN_TxSwitchToRx:
/* fallthrough */
__fallthrough;
case kStatus_FLEXCAN_TxIdle:
mcux_flexcan_transfer_tx_idle(dev, result);
break;
case kStatus_FLEXCAN_RxOverflow:
/* fallthrough */
__fallthrough;
case kStatus_FLEXCAN_RxIdle:
mcux_flexcan_transfer_rx_idle(dev, result);
break;