Relative Content

Tag Archive for cmisra

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 […]

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.