[previous] 3116 [next] Unrecognized #pragma arguments '%s' This #pragma directive has been ignored.
Preprocessing REFERENCE - ISO:C90-6.8.6 Pragma Directive

An unrecognized #pragma directive has been used.

#pragma directives are intrinsically implementation-defined. QAC recognises a number which are used in assisting the analysis process, for example:

Other #pragmas can be declared to QAC with the -spragma option.

If QAC encounters any other #pragma, message 3116 will be generated.

For example:


/*PRQA S 2017,3211,3408 ++*/
/**********************************
 * OPTIONS: -spragma SPECIAL_PRAGMA
 **********************************/

#pragma PRQA_NO_SIDE_EFFECTS "myfunction"       /* OK - internal #pragma */

#pragma UNKNOWN                                 /* Message 3116 */

#pragma SPECIAL_PRAGMA                          /* OK - declared in -spragma option */

int x;


MISRA-C:2004 Rules applicable to message 3116:

Rule  3.4  (Required) All uses of the #pragma directive shall be documented and explained.


QA·C Source Code Analyser 8.1
MISRA-C:2004 Compliance Module 3.2
© 2012 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index | MISRA-C:2004 Rule Index Contents