[previous] 0340 [next] Using the '#error' preprocessing directive.
K+R compatibility REFERENCE - ISO:C90-6.8.5 Error Directive

#error is being used. This is a preprocessing directive which was not supported in old (pre ISO) compilers.

Message 0340 is only generated when the "-k+r e" option is enabled.

For example:


/*PRQA S 553,2017,3211,3408 ++*/

/*****************************
 * OPTIONS: -k+r e
 *****************************/

#ifdef MYTUNE
#error "The macro MYTUNE should not be defined in this module"          /* Message 0340 */
#endif

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