[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: [PATCH] Remove a compilation warning
From: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn () axis ! com>
Date: 2015-12-31 10:01:24
Message-ID: alpine.DEB.2.20.1512311058490.8763 () enwn ! fr ! nkvf ! pbz
[Download RAW message or body]
Reported by gcc (Debian 5.3.1-4) 5.3.1 20151219
shell/ash.c: In function 'evaltree':
shell/ash.c:8432:19: warning: logical not is only applied to the left hand side of \
comparison [-Wlogical-not-parentheses] if (!exitstatus == is_or)
^
Signed-off-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com>
---
shell/ash.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/shell/ash.c b/shell/ash.c
index e7a867f..daec975 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -8429,7 +8429,7 @@ evaltree(union node *n, int flags)
n->nbinary.ch1,
(flags | ((is_or >> 1) - 1)) & EV_TESTED
);
- if (!exitstatus == is_or)
+ if ((!exitstatus) == is_or)
break;
if (!evalskip) {
n = n->nbinary.ch2;
--
2.6.4
Cheers,
--
Cristian
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic