[previous] 1002 [next] [E] '%s' is not a legal identifier in ISO C.
Language extensions REFERENCE - ISO:C90-6.1.2 Identifiers

The $ character is not a member of the basic source character set and cannot be used in an identifier in ISO C. However the $ character is supported in VMS compilers.

QAC will permit the character to be used in an identifier if the language extension option "-ex dollar" is enabled.

For example:


/*PRQA S 289,2017,3211,3408 ++*/
/**********************************
 * OPTIONS -ex dollar or -ex all
 *********************************/

int recover$;            /* Message 1002 */


MISRA-C:2004 Rules applicable to message 1002:

Rule  1.1  (Required) All code shall conform to ISO/IEC 9899:1990 C programming language, ISO 9899, amended and corrected by ISO/IEC 9899/COR1:1995, ISO/IEC 9899/AMD1:1995, and ISO/IEC 9899/COR2: 1996192


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