[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

infocmp.c:804: possible bad if test ?

From: David Binderman
Subject: infocmp.c:804: possible bad if test ?
Date: Thu, 14 Nov 2013 19:45:07 +0000

Hello there,

I just compiled ncurses-5.9 with extra Linux gcc compiler flag -Wlogical-op

It said

../../progs/infocmp.c:804:6: warning: logical 'and' of mutually exclusive tests 
is always false [-Wlogical-op]

Source code is

        if (strnames[i][0] == 'k' && strnames[i][0] == 'f')

Suggest swap && for ||


David Binderman                                           

reply via email to

[Prev in Thread] Current Thread [Next in Thread]