Skip to main content

IAR Embedded Workbench for RX 5.20

MISRAC2012-Rule-2.3

In this section:
Synopsis

(Advisory) A project should not contain unused type declarations.

Enabled by default

No

Severity/Certainty

Medium/Medium

mediummedium.png
Full description

Unused type declaration.

This is a link analysis check.

Coding standards
MISRA C:2012 Rule-2.3

(Advisory) A project should not contain unused type declarations

Code examples

The following code example fails the check and will give a warning:

typedef int unused;

The following code example passes the check and will not give a warning about this issue:

typedef int used;
used name;