[previous] 3460 [next] Macro defines a type specifier keyword.
Macro Definition

This macro defines a type specifier, i.e. one of the following:

For example:


/*PRQA S 553,2017 ++*/

#define M1 int                  /* Message 3460 */
#define M2 void                 /* Message 3460 */


MISRA-C:2004 Rules applicable to message 3460:

Rule  19.4  (Required) C macros shall only expand to a braced initialiser, a constant, a string literal, a parenthesised expression, a type qualifier, a storage class specifier, or a do-while-zero construct.


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