mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-06 02:52:24 +00:00
silences clang warnings of type "place parentheses around the '&' expression". small fix in OPV to
make it
This commit is contained in:
parent
b25a810007
commit
f066c42eb9
4 changed files with 3 additions and 1 deletions
BIN
showdef
BIN
showdef
Binary file not shown.
|
|
@ -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
|
||||||
|
|
|
||||||
BIN
voc
BIN
voc
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue