600-fix-compilation-warning-switch-fallthrough.patch 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. --- a/src/drv_tapi_cid.c
  2. +++ b/src/drv_tapi_cid.c
  3. @@ -1424,6 +1424,8 @@ static IFX_int32_t cid_lookup_transparen
  4. cidfsk_set_tx_time (pTxData, &pConfData->TapiCidFskConf);
  5. + fallthrough;
  6. +
  7. case IFX_TAPI_CID_GEN_TYPE_DTMF:
  8. memcpy (pTxData->cidBuf[IFX_TAPI_CID_GEN_TYPE_DTMF].pBuf,
  9. pMessage[0].transparent.data, pMessage[0].transparent.len);
  10. @@ -1497,6 +1499,7 @@ static IFX_int32_t cid_prepare_data(TAPI
  11. break;
  12. case IFX_TAPI_CID_STD_KPN_DTMF:
  13. /*lint -fallthrough*/
  14. + fallthrough;
  15. case IFX_TAPI_CID_STD_KPN_DTMF_FSK:
  16. if (IFX_TAPI_CID_HM_ONHOOK == pTxData->txHookMode)
  17. {
  18. @@ -1506,6 +1509,7 @@ static IFX_int32_t cid_prepare_data(TAPI
  19. }
  20. /* KPN CID Type 2 (off-hook) always using FSK */
  21. /*lint -fallthrough*/
  22. + fallthrough;
  23. default:
  24. pTxData->cidGenType = IFX_TAPI_CID_GEN_TYPE_FSK;
  25. break;
  26. @@ -1532,6 +1536,7 @@ static IFX_int32_t cid_prepare_data(TAPI
  27. break;
  28. /*lint -fallthrough*/
  29. + fallthrough;
  30. case IFX_TAPI_CID_GEN_TYPE_FSK:
  31. if (IFX_TAPI_CID_STD_NTT == pConfData->nStandard)
  32. @@ -2036,6 +2041,7 @@ static FSM_STATUS_t cid_fsm_alert_exec(T
  33. }
  34. pTxData->nCidSubState++;
  35. /*lint -fallthrough*/
  36. + fallthrough;
  37. case 1:
  38. if (pConfData->OSIoffhook && pConfData->nSAStone)
  39. {
  40. @@ -2052,6 +2058,7 @@ static FSM_STATUS_t cid_fsm_alert_exec(T
  41. }
  42. pTxData->nCidSubState++;
  43. /*lint -fallthrough*/
  44. + fallthrough;
  45. case 2:
  46. if (pConfData->nSAStone)
  47. {
  48. @@ -2069,6 +2076,7 @@ static FSM_STATUS_t cid_fsm_alert_exec(T
  49. }
  50. pTxData->nCidSubState++;
  51. /*lint -fallthrough*/
  52. + fallthrough;
  53. default:
  54. /* Play CAS tone on data channel, use unprotected function, protection
  55. is done around cid_fsm_alert_exec */
  56. @@ -3458,6 +3466,7 @@ IFX_int32_t TAPI_Phone_CID_Stop_Tx(TAPI_
  57. }
  58. /* deliberately fall through */
  59. /*lint -fallthrough*/
  60. + fallthrough;
  61. case TAPI_CID_STATE_ACK:
  62. /* deactivate the DTMF override - last two params are ignored */
  63. if (ptr_chk(pDrvCtx->SIG.DTMFD_Override, ""))
  64. @@ -3469,6 +3478,7 @@ IFX_int32_t TAPI_Phone_CID_Stop_Tx(TAPI_
  65. }
  66. /* deliberately fall through */
  67. /*lint -fallthrough*/
  68. + fallthrough;
  69. case TAPI_CID_STATE_SENDING:
  70. TAPI_Stop_Timer (pTxData->CidTimerID);
  71. break;
  72. @@ -4066,6 +4076,7 @@ IFX_int32_t TAPI_Phone_Get_CidRxData (TA
  73. /* If the fifo is not empty take the data from the fifo first. */
  74. /* deliberately fallthrough to default case */
  75. /*lint -fallthrough*/
  76. + fallthrough;
  77. default:
  78. /* Allow readout of data in all other states not handled above.
  79. When there is no data in the fifo TAPI_statusErr is returned. */
  80. --- a/src/drv_tapi_dial.c
  81. +++ b/src/drv_tapi_dial.c
  82. @@ -319,6 +319,8 @@ static IFX_void_t ifx_tapi_dial_OnTimer(
  83. /* NOTE: the "break" statement has been intentionally omitted */
  84. /*lint -fallthrough */
  85. + fallthrough;
  86. +
  87. case TAPI_HOOK_STATE_DIAL_L_VAL:
  88. /* digit_l_min expires: onhook has lasted long enough to be a
  89. certain low pulse (not noise). The next state is the overlap with
  90. --- a/src/drv_tapi_event.c
  91. +++ b/src/drv_tapi_event.c
  92. @@ -1545,6 +1545,7 @@ IFX_int32_t IFX_TAPI_Event_Dispatch_Proc
  93. /**\todo put in device fifo */
  94. pEvent->ch = IFX_TAPI_DEVICE_CH_NUMBER;
  95. /*lint -fallthrough */
  96. + fallthrough;
  97. case IFX_TAPI_ERRSRC_LL_CH:
  98. pEvent->data.value |= IFX_TAPI_ERRSRC_LL;
  99. break;
  100. --- a/src/drv_tapi_ioctl.c
  101. +++ b/src/drv_tapi_ioctl.c
  102. @@ -1552,6 +1552,7 @@ static IFX_int32_t TAPI_IoctlCh (IFX_TA
  103. /* Dial Services */
  104. ret = TAPI_statusNotSupported;
  105. /*lint -fallthrough*/
  106. + fallthrough;
  107. default:
  108. bHandled = IFX_FALSE;
  109. break;