[previous] 3228 [next] Storage class specifier not positioned at the beginning of declaration.
Declarations and Definitions REFERENCE - ISO:C90-6.9.3 Future Language Directions

A storage-class specifier is used in this declaration but is not located at the beginning.

This is legitimate but very unconventional and it is described as obsolescent in the ISO:C language standard.

For example:


/*PRQA S 553,2017,3207,3602 ++*/

static const int a1 = 0;
static int const a2 = 0;
const static int a3 = 0;        /* Message 3228 */
const int static a4 = 0;        /* Message 3228 */
int static const a5 = 0;        /* Message 3228 */
int const static a6 = 0;        /* Message 3228 */


No MISRA-C:2004 Rules applicable to message 3228


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