25-07-2016, 01:16 PM
Does the following code example violate Rule 2.2, due to the left shift?
[code]#define BITSET(reg, bit) ((reg) |= (uint8_t)(1u
[code]#define BITSET(reg, bit) ((reg) |= (uint8_t)(1u
<t></t>
Welcome to the new MISRA discussion forum, if you were previously a member of our forums you may need to reset your password.
Rule 2.2 - dead code
|
« Next Oldest | Next Newest »
|
Messages In This Thread |