[klibc] usr/dash/eval.c:277:19: warning: logical not is only applied to the left hand side of comparison

Christophe Leroy christophe.leroy at c-s.fr
Tue Jan 22 09:43:51 PST 2019

Le 22/01/2019 à 18:38, eno a écrit :
> Hi!
>> Any idea ?
> I believe that:
>      if (!exitstatus == isor)
> equals to,
>      if ((!exitstatus) == isor)
> because the exclamation mark have bigger priority than "==".

Yes but I'm not 100% sure that what is written is really what is 
expected. Can someone confirm ?

I agree with you, if the current form corresponds to expectation, then 
we can shut up the warning that way. But I want to be should we won't 
just hide a real bug.


More information about the klibc mailing list