[previous] 0551 [next] [E] Cast may not operate on the left operand of the assignment operator.
Language extensions

A cast has been applied to the left hand side of an assignment operation. This is a language extension. QA·C is able to parse this syntax but does not interpret the semantics.

For example:


/*PRQA S 1257,2017,3120,3195,3199,3203,3408,3625 ++*/

extern void foo(char p)
{
    (unsigned int)p = 0x12u;          /* Message 0551 */
}

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