VERILOG2017: Unused typedef should be removed
Summary
| Reliability | Security | Maintainability | Code attribute | Effort to fix | Tags |
|---|---|---|---|---|---|
| MEDIUM | - | - | Intentionality | Logical | 10min | synthesis, vscode, simulation, linter, dead-code |
Description
Noncompliant code example
module fly;
typedef struct { int a; } foo_t; // Noncompliant: 'foo_t' is never used
endmodule
Compliant solution
module fly;
typedef struct { int a; } foo_t;
foo_t dream;
endmodule
Unused typedef should be removed.
Parameters
No parameters.