Replies: 1 comment
-
I assume we should. But currently we enforce MISRA C under Just for a reference:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, recently there was a discussion on MISRA C on the development mailing list. This triggered me to have a look at the required MISRA C rules for zephyr and one of the required rules is Rule 14.4:
The controlling expression of an if statement and the controlling expression of an iteration-statement shall have essentially Boolean type
.Is my understanding of this rule correct that the following constructs are to be changed:
and the following is no longer allowed:
If my understanding is correct it might be a good idea to communicate this requirement to all maintainers so that PR's are checked against this rule.
Beta Was this translation helpful? Give feedback.
All reactions