From 74488d88deefe5cfcddd55ea5e842a3fb7577009 Mon Sep 17 00:00:00 2001 From: Norayr Chilingarian Date: Thu, 10 Apr 2014 17:51:05 +0400 Subject: [PATCH] silences clang warnings of type "place parentheses around the '&' expression". small fix in OPV to make it Former-commit-id: f066c42eb985e6ae4d515e2be3b21d4df6948111 --- showdef.REMOVED.git-id | 2 +- src/voc/OPV.Mod | 4 +++- voc.REMOVED.git-id | 2 +- vocstatic.linux.clang.x86_64.REMOVED.git-id | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/showdef.REMOVED.git-id b/showdef.REMOVED.git-id index 9c3d430f..e3fff2fe 100644 --- a/showdef.REMOVED.git-id +++ b/showdef.REMOVED.git-id @@ -1 +1 @@ -b8912125a0cc6b1d7322b4e8f0651f41ece55412 \ No newline at end of file +4b540a376f943c1a9cd7bd56b1f6020c7722374a \ No newline at end of file diff --git a/src/voc/OPV.Mod b/src/voc/OPV.Mod index faf311c4..18dbca58 100644 --- a/src/voc/OPV.Mod +++ b/src/voc/OPV.Mod @@ -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 diff --git a/voc.REMOVED.git-id b/voc.REMOVED.git-id index 09127b81..1e280b2d 100644 --- a/voc.REMOVED.git-id +++ b/voc.REMOVED.git-id @@ -1 +1 @@ -675d9ee513e6424d707a4e82ff97bddacb103fcc \ No newline at end of file +ce94362b690a9421dbf818caf631e4b6122a661b \ No newline at end of file diff --git a/vocstatic.linux.clang.x86_64.REMOVED.git-id b/vocstatic.linux.clang.x86_64.REMOVED.git-id index 09127b81..1e280b2d 100644 --- a/vocstatic.linux.clang.x86_64.REMOVED.git-id +++ b/vocstatic.linux.clang.x86_64.REMOVED.git-id @@ -1 +1 @@ -675d9ee513e6424d707a4e82ff97bddacb103fcc \ No newline at end of file +ce94362b690a9421dbf818caf631e4b6122a661b \ No newline at end of file