diff options
author | chinglee-iot <61685396+chinglee-iot@users.noreply.github.com> | 2023-12-07 13:15:19 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-07 13:15:19 +0300 |
commit | 877484cd7e6422e7bd7a4df4029afe8bca8b81e5 (patch) | |
tree | 229d20504780c1384da3c65b8708b1f8f2f416b2 /stream_buffer.c | |
parent | 15af8e072d7299d92a38a2f634c3bf3f095d3a32 (diff) |
Fix MISRA C 2012 Rule 11.1 deviations (#856)
* Update callback function prototype to align with definition
* Suppress unused function pointer parameter
---------
Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
Co-authored-by: Ubuntu <ubuntu@ip-172-31-34-245.ap-northeast-1.compute.internal>
Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Rahul Kar <118818625+kar-rahul-aws@users.noreply.github.com>
Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
Co-authored-by: Gaurav Aggarwal <aggarg@amazon.com>
Diffstat (limited to 'stream_buffer.c')
-rw-r--r-- | stream_buffer.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/stream_buffer.c b/stream_buffer.c index 35e67cf35..9899e30ee 100644 --- a/stream_buffer.c +++ b/stream_buffer.c @@ -1507,10 +1507,17 @@ static void prvInitialiseNewStreamBuffer( StreamBuffer_t * const pxStreamBuffer, } #else { + /* MISRA Ref 11.1.1 [Object type casting] */ + /* More details at: https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/main/MISRA.md#rule-111 */ + /* coverity[misra_c_2012_rule_11_1_violation] */ ( void ) pxSendCompletedCallback; + + /* MISRA Ref 11.1.1 [Object type casting] */ + /* More details at: https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/main/MISRA.md#rule-111 */ + /* coverity[misra_c_2012_rule_11_1_violation] */ ( void ) pxReceiveCompletedCallback; } - #endif + #endif /* if ( configUSE_SB_COMPLETED_CALLBACK == 1 ) */ } #if ( configUSE_TRACE_FACILITY == 1 ) |