WARN57-Enumerated constant missing in case structure |
Top Previous Next |
Enumerated constant missing in case structure (WARN57)
This section lists locations in your code where a case statement does not list all possible values of an enumerated type. This is probably most often as intended, but it may also point out an error in the code.
Example:
In the code above, cpKing is missing from the case structure, and will trigger a warning.
If you want to suppress warnings for a case-structure, just use PALOFF on the same line as the "case" keyword.
See also:
|