CWARN.EMPTY.TYPEDEF

Missing typedef name

The CWARN.EMPTY.TYPEDEF checker finds typedef statements in which the declarator is missing.

Vulnerability and risk

This type of situation is normally a syntax mistake or typo that could cause unintended program behavior.

Vulnerable code example

Copy
  typedef char;

In this example, the declarator is missing.