![]() |
![]() |
3608 | ![]() |
||||
![]() | |||||||
| K+R compatibility | REFERENCE - ISO:C90-6.8.1 Preprocessing Directives - Conditional Inclusion | ||||||
#elif is being used. This preprocessing directive was not supported in old (pre ISO) compilers. Message 3608 is functionally identical to message 0352 except that message 3608 is only generated when the "-k+r l" option is disabled and message 0352 is only generated when this option is enabled. For example:
/*PRQA S 2017,3122,3211,3408,3625,3674 ++*/
#define MOTOR 1
#if MOTOR == 1
char text[]="CHASSIS";
#elif MOTOR == 2 /* Message 3608 */
char text[]="ENGINE";
#else
char text[]="LIGHTING";
#endif
No MISRA C:2012 Rules applicable to message 3608
See also:
![]() | ||
| QA·C Source Code Analyser 8.1
MISRA C:2012 Compliance Module 1.0 © 2012 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | MISRA C:2012 Rule Index | Contents |