SA0032: Unused enumeration constants
Detects enumeration constants which are not used in the compiled program code
Justification: Unused enumeration constants unnecessarily increase the size of the enumeration definition and can be confusing when reading the program.
PLCopen rule: CP24
Importance: Low
Tip
If multiple applications exist in a project, then only the objects below the currently active applications are affected. If there is only one application, then the objects in the common POU pool are also affected.
Example 42. Example
TYPE My_Enum : ( one := 1, two := 2 ); END_TYPE
Output in the Messages view:
SA0032: Unused enumeration constant 'one'
SA0032: Unused enumeration constant 'two'
For more information, see: