mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-06 05:12:26 +00:00
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:
parent
44dd584190
commit
74488d88de
4 changed files with 6 additions and 4 deletions
|
|
@ -698,6 +698,7 @@ MODULE OPV; (* J. Templ 16.2.95 / 3.7.96
|
|||
expr(r, exprPrec)
|
||||
END
|
||||
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);
|
||||
CASE subclass OF
|
||||
times:
|
||||
|
|
@ -724,7 +725,8 @@ MODULE OPV; (* J. Templ 16.2.95 / 3.7.96
|
|||
| or:
|
||||
OPM.WriteString(" || ")
|
||||
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
|
||||
| Ncall:
|
||||
IF (l^.obj # NIL) & (l^.obj^.mode = TProc) THEN
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue