[previous] 0458 [next] [C] Indirection operator '*' requires operand of pointer type.
Constraint violations REFERENCE - ISO:C90-6.3.3.2 Address and Indirection Operators - Constraints

This is a constraint error

The indirection operator '*' can only be applied to an expression of pointer type. Perhaps you have used too many indirection operators or mis-spelled an identifier. For example:


/*PRQA S 506,2213,2216,3198,3199,3203,3408,3447 ++*/


extern int *pgi;
extern int px;


void foo(void)
{
    int n;

    n = **pgi;               /* Message 0458 */
    n = *px;                 /* Message 0458 */
}

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