This rule is Obsolete | |
Synopsis: | enum should be used with caution. |
Language: | C |
Severity Level: | 7 |
Category: | DECLARATIONS |
Description: |
A significant grey area in the treatment of enums relates to their type. They are defined to be compatible with an integer type but their size is implementation defined. It is recommended that they are not mixed with other integer types in expressions. Note that there are significant differences in the treatment of enum between C and C++. |