[previous] 0447 [next] [C] Operand of ++/-- must be a modifiable object.
Constraint violations REFERENCE - ISO:C90-6.3.2.4 (Postfix), ISO:C90-6.3.3.1 (Prefix) Increment and Decrement Operators

This is a constraint error

The operand of a ++ or -- operator (either prefix or postfix) must be a modifiable lvalue. For example:


/*PRQA S 506,3132,3408,3447,3602 ++*/

extern        int x[10];
extern const  int y;

void foo(void)
{
    ++x;                        /* Message 0447 */
    ++y;                        /* Message 0447 */
}

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