Hi folks,
C2000, v6.2.10 C/C++ compiler with MISRA enabled shows a violation of R12.6 (The operands of logical operators (&&, || and !) should be effectively Boolean.) for the following if condition:
if (s->foo || s->bar) {
/* ... */
}
Im not 100% sure on the semantics of the rule here but aren't the conditions `s->foo` & `s->bar` Boolean without explicitly adding `!= 0` ?
Ta