From 766712fa941f978af2d257110738ace406173e7d Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Fri, 28 Jun 2013 09:12:53 +0300 Subject: [PATCH] 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 --- smatch_comparison.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.11.4.GIT