Suppress warning about +/- in <</>>, if the +/- is parenthesized.
authorChristoph Mallon <christoph.mallon@gmx.de>
Wed, 10 Dec 2008 19:20:36 +0000 (19:20 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Wed, 10 Dec 2008 19:20:36 +0000 (19:20 +0000)
[r24500]

parser.c

index f51826c..b1dfc6b 100644 (file)
--- 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;