MISRAC2012-Rule-20.4_c89
In this section:
Synopsis
(Required) A macro shall not be defined with the same name as a keyword
Enabled by default
Yes
Severity/Certainty
Low/Low

Full description
A macro was found defined with the same name as a keyword.
Coding standards
- MISRA C:2012 Rule-20.4
(Required) A macro shall not be defined with the same name as a keyword
Code examples
The following code example fails the check and will give a warning:
#define int some_other_type
The following code example passes the check and will not give a warning about this issue:
#define unless( E ) if ( ! ( E ) ) /* Compliant */