My shop is using Coverity 2019.3. We have MISRA-C 2004 enabled. I want to disable MISRA-C 2004 Rule 2.2: Source code shall only use /* ... */ comments. The cov-
cannot cast 'float64' to different essential type 'unsigned16' [MISRA 2012 Rule 10.8, required] double x, y; #define MIN 2.0 uint16_t z = (uint16_t) ((x * MIN)
I have defined the MACRO, which will call the function and pass the argument. Getting below MISRA warning for this case. Is it not allowed? How to avoid this?
Regarding to MISRA C 2012 rule 15.4 - "There should be no more than one break or goto statement used to terminate any iteration statement." - is this example co
MISRA C:2012, Rule 21.1: #define and #undef shall not be used on a reserved identifier or reserved macro name. However, C11 permits to define, for example, __