[git commit] ash: placate gcc: "warning: ! is only applied to the left hand side of =="

Denys Vlasenko vda.linux at googlemail.com
Sun Oct 2 13:31:33 UTC 2016


commit: https://git.busybox.net/busybox/commit/?id=bc1a00843fce8ce0ed101c4e6eb02ee79e673a00
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 shell/ash.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shell/ash.c b/shell/ash.c
index 40b3ef3..41ae5cb 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -8590,7 +8590,7 @@ evaltree(union node *n, int flags)
 			n->nbinary.ch1,
 			(flags | ((is_or >> 1) - 1)) & EV_TESTED
 		);
-		if (!status == is_or || evalskip)
+		if ((!status) == is_or || evalskip)
 			break;
 		n = n->nbinary.ch2;
  evaln:


More information about the busybox-cvs mailing list