![]() |
![]() |
4322 | ![]() |
||||
![]() | |||||||
| Arithmetic type - Casts | |||||||
This message is issued whenever an expression of essentially enum type has been cast to a different enum type. For example:
/*PRQA S 1-9999 ++*/
/*PRQA S 4322 --*/
enum E1 {APPLES, ORANGES};
enum E2 {ONE, TWO};
void foo (enum E1);
enum E1 f4322 (enum E2 a)
{
foo ((enum E1) ONE); /* 4322 */
return ((enum E1) a); /* 4322 */
}
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |