From 94988b794fbf7f6920f7640602ab267ff36912b7 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Wed, 10 Dec 2008 19:20:36 +0000 Subject: [PATCH] Suppress warning about +/- in <>, if the +/- is parenthesized. [r24500] --- parser.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/parser.c b/parser.c index f51826c..b1dfc6b 100644 --- a/parser.c +++ b/parser.c @@ -8852,6 +8852,9 @@ static void semantic_divmod_arithmetic(binary_expression_t *expression) { static void warn_addsub_in_shift(const expression_t *const expr) { + if (expr->base.parenthesized) + return; + char op; switch (expr->kind) { case EXPR_BINARY_ADD: op = '+'; break; -- 2.20.1