[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 */
}


MISRA C:2012 Rules applicable to message 0458:

Rule-1.1  (Required) The program shall contain no violations of the standard C syntax and constraints, and shall not exceed the implementation's translation limits


QA·C Source Code Analyser 8.1
MISRA C:2012 Compliance Module 1.0
© 2012 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index | MISRA C:2012 Rule Index Contents