21-05-2008, 08:45 AM
Code:
mc2_1203_x = sizeof ( mc2_1203_a = 1234U );
This is a violation of Rule 12.3.
mc2_1203_a = 1234U is not executed, so is not an assignment statement.
Posted by and on behalf of the MISRA C Working Group
Welcome to the new MISRA discussion forum, if you were previously a member of our forums you may need to reset your password.
Rule 12.2 and "nested assignment statements"
|
« Next Oldest | Next Newest »
|
Messages In This Thread |