CERT-MSC40-C_d
In this section:
Synopsis
Do not violate constraints.
Enabled by default
Yes
Severity/Certainty
Medium/Medium

Full description
The C Standard, 6.9.1, paragraph 6 outlines the following constraint: an identifier declared as a typedef name shall not be redeclared as a parameter.
Coding standards
- CERT MSC40-C
Do not violate constraints
Code examples
The following code example fails the check and will give a warning:
typedef int X; void example(X X);
The following code example passes the check and will not give a warning about this issue:
typedef int X; void example(void);