[previous] 0350 [next] Using the keyword 'enum'.
K+R compatibility REFERENCE - ISO:C90-6.5.2.2 Enumeration Specifiers

An enum type is being used. Enum types were not supported in early versions of the C language.

Be aware that message 0350 is only generated when the "-k+r n" option is enabled. Notice also that when this option is enabled, message 3602 is no longer generated.

For example:


/*PRQA S 2017,2211,2213,3206,3408 ++*/
/*****************************
 * OPTIONS: -k+r n
 ****************************/

enum ET {A, B, C};                      /* Message 0350 */

extern void foo(enum ET ex)             /* Message 0350 */
{
}

See also:

QA·C Source Code Analyser 8.1.2
© 2013 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index Contents