Sizeof compound literal array producing side effects?
Does sizeof((int[]){1,2,3}) get evaluated at compile time? And is guaranteed by the standard. Does the sizeof operand in this case produce side effects? I am asking this question because with Tasking compiler this line results in warning “side effects of ‘sizeof’ operand are ignored“. I am wondering if this is a spurious warning or is […]
Passing a function argument of the wrong type is allowed by MISRA?
I’m working on a bare-metal software on STM32H7 which is controled by a coding rules analyser (HELIX QAC) following MISRA-C 2012 standard.
How to fix MISRA issue 14.3
I have this part of code, in the codebase, and while running coverity I have come up with an MISRA issue 14.3.