silences clang warnings of type "place parentheses around the '&' expression". small fix in OPV to

make it


Former-commit-id: f066c42eb9
This commit is contained in:
Norayr Chilingarian 2014-04-10 17:51:05 +04:00
parent 44dd584190
commit 74488d88de
4 changed files with 6 additions and 4 deletions

View file

@ -1 +1 @@
b8912125a0cc6b1d7322b4e8f0651f41ece55412 4b540a376f943c1a9cd7bd56b1f6020c7722374a

View file

@ -698,6 +698,7 @@ MODULE OPV; (* J. Templ 16.2.95 / 3.7.96
expr(r, exprPrec) expr(r, exprPrec)
END END
ELSE ELSE
IF (subclass = and) OR ((form = Set) & ((subclass = times) OR (subclass = minus))) THEN OPM.Write(OpenParen); END; (* to silence clang warnings; -- noch *)
expr(l, exprPrec); expr(l, exprPrec);
CASE subclass OF CASE subclass OF
times: times:
@ -724,7 +725,8 @@ MODULE OPV; (* J. Templ 16.2.95 / 3.7.96
| or: | or:
OPM.WriteString(" || ") OPM.WriteString(" || ")
END; END;
expr(r, exprPrec) expr(r, exprPrec);
IF (subclass = and) OR ((form = Set) & ((subclass = times) OR (subclass = minus))) THEN OPM.Write(CloseParen) END; (* to silence clang warnings, -- noch*)
END END
| Ncall: | Ncall:
IF (l^.obj # NIL) & (l^.obj^.mode = TProc) THEN IF (l^.obj # NIL) & (l^.obj^.mode = TProc) THEN

View file

@ -1 +1 @@
675d9ee513e6424d707a4e82ff97bddacb103fcc ce94362b690a9421dbf818caf631e4b6122a661b

View file

@ -1 +1 @@
675d9ee513e6424d707a4e82ff97bddacb103fcc ce94362b690a9421dbf818caf631e4b6122a661b