[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 08:53:05 PST 2019


   KLIBCCC usr/dash/eval.o
usr/dash/eval.c: In function 'evaltree':
usr/dash/eval.c:277:19: warning: logical not is only applied to the left 
hand side of comparison [-Wlogical-not-parentheses]
    if (!exitstatus == isor)
                    ^

Not sure what the fix should be:

    if (!(exitstatus == isor))


Or


    if ((!exitstatus) == isor)



Any idea ?


Christophe




More information about the klibc mailing list