|
|||||||||||
Technical Support Support Resources
Product Information |
C166: enum Type CheckingInformation in this article applies to:
QUESTIONI use a lot of enums in my C code. I need to know if the C compiler performs type checking for enums to validate that I'm using correct enums for certain variables. For example:
The above code generates no warnings when BARTLETT is passed for the enum apple parameter. Is this correct? ANSWERYes. This is correct. Currently, C166 does not perform type checking for enumerations. PC-Lint performs this type of error checking and it can easily be integrated into the µVision IDE. Last Reviewed: Thursday, February 25, 2021 | ||||||||||
|
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.