aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com>2016-01-02 00:52:29 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2016-01-02 00:52:29 +0100
commitc2a2625bcbd0d883ca74afb5275e6fd9806936d2 (patch)
tree6db89a33ae315c611a38333b580282a23fde12da
parent911d265faf34c90158f5ba0ef81d1d558ec595e6 (diff)
downloadbusybox-w32-c2a2625bcbd0d883ca74afb5275e6fd9806936d2.tar.gz
busybox-w32-c2a2625bcbd0d883ca74afb5275e6fd9806936d2.tar.bz2
busybox-w32-c2a2625bcbd0d883ca74afb5275e6fd9806936d2.zip
ash: suppress a compilation warning
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 Signed-off-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--shell/ash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c
index e7a867f52..daec975c5 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -8429,7 +8429,7 @@ evaltree(union node *n, int flags)
8429 n->nbinary.ch1, 8429 n->nbinary.ch1,
8430 (flags | ((is_or >> 1) - 1)) & EV_TESTED 8430 (flags | ((is_or >> 1) - 1)) & EV_TESTED
8431 ); 8431 );
8432 if (!exitstatus == is_or) 8432 if ((!exitstatus) == is_or)
8433 break; 8433 break;
8434 if (!evalskip) { 8434 if (!evalskip) {
8435 n = n->nbinary.ch2; 8435 n = n->nbinary.ch2;