projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8bae1d
)
Suppress warning about +/- in <</>>, if the +/- is parenthesized.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Wed, 10 Dec 2008 19:20:36 +0000
(19:20 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Wed, 10 Dec 2008 19:20:36 +0000
(19:20 +0000)
[r24500]
parser.c
patch
|
blob
|
history
diff --git
a/parser.c
b/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;