From: Dan Carpenter Date: Fri, 28 Jun 2013 06:12:53 +0000 (+0300) Subject: comparison: ignore assigns like += or /= for now X-Git-Tag: 1.59~27 X-Git-Url: https://repo.or.cz/w/smatch.git/commitdiff_plain/766712fa941f978af2d257110738ace406173e7d comparison: ignore assigns like += or /= for now Eventually I will want to handle these but for now they are just causing bugs so ignore them. Signed-off-by: Dan Carpenter --- diff --git a/smatch_comparison.c b/smatch_comparison.c index e78305bd..0aa17062 100644 --- a/smatch_comparison.c +++ b/smatch_comparison.c @@ -900,6 +900,9 @@ static void match_assign(struct expression *expr) { struct expression *right; + if (expr->op != '=') + return; + copy_comparisons(expr->left, expr->right); add_comparison(expr->left, SPECIAL_EQUAL, expr->right);