This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
In my project I have the following bitfields defined:
struct DRR2_BITS { // bits description
Uint16 HWLB:8; // 7:0 High word low byte
Uint16 HWHB:8; // 15:8 High word high byte
};
This is triggering MISRA 6.4 -
(MISRA-C:2004 6.4/R) Bit fields shall only be defined to be of type unsigned int or signed int
Uint16 is defined as:
typedef unsigned int Uint16;
Seems that this should satisfy the requirement. Is this a bug or am I missing something?
-Lori
Lori,
This is a bug that has already been reported and is being tracked in SDSCM00042434.