[previous] 0666 [next] [S] Only type qualifiers 'const' or 'volatile' are legal here in a pointer declaration.
Syntax errors REFERENCE - ISO:C90-6.5.4 Declarators - Syntax

This type declaration is badly formed. Declarations of pointer objects can only have type qualifiers between the type declaration part (e.g. int *) and the object name. For example:


/*PRQA S 1305,2017,3211,3408,3602 ++*/

/* valid pointer declarations: */
int * const                a = 0;         /* OK */
int * volatile             b = 0;         /* OK */
int * const volatile       c = 0;         /* OK */
const int * const          d = 0;         /* OK */
const int * const volatile e = 0;         /* OK */

/* illegal pointer declaration: */
int * int                  f = 0;         /* Message 0666 */
* int                      g = 0;         /* Message 0666 */

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