[previous] 3106 [next] This preprocessing directive has been ignored because it lies within a #pragma block. #pragma '%s' expected.
Preprocessing

This preprocessing directive is located within a block of code that has been excluded from QA·C analysis. The code block is excluded because it is bounded by two #pragma statements which are arguments to the -skippragma option.

The -skippragma option defines 2 identifiers which are used as a way of excluding a block of code from QA·C analysis. The identifiers are used as arguments to 2 #pragma directives which are inserted around the section of code which is to be excluded.

Message 3106 exists to warn that a preprocessing directive is located in a #pragma block and will therefore be ignored.

For example:


/* PRQA S 3211,3408 ++*/
/******************************************
 * OPTIONS: -spragma IGNORE_THIS,END_IGNORE
 ******************************************/

#pragma IGNORE_THIS

#define MED 1                           /* Message 3106 */

#ifdef FAD                              /* Message 3106 */
int y = 0;
#endif                                  /* Message 3106 */

#pragma END_IGNORE

int x = 0;

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