From: Cristian Ionescu-Idbohrn Date: Fri, 1 Jan 2016 23:52:29 +0000 (+0100) Subject: ash: suppress a compilation warning X-Git-Tag: 1_25_0~144 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c2a2625bcbd0d883ca74afb5275e6fd9806936d2;p=oweals%2Fbusybox.git 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 Signed-off-by: Denys Vlasenko --- 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) 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;