All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] LVM2.2.02.103/tools/lvchange.c:779: bad if test ?
@ 2013-10-23 20:26 David Binderman
  2013-10-24 11:51 ` Fwd: " Marian Csontos
  0 siblings, 1 reply; 3+ messages in thread
From: David Binderman @ 2013-10-23 20:26 UTC (permalink / raw)
  To: linux-lvm@redhat.com

Hello there,

I just compiled LVM2.2.02.103 with the extra Linux gcc compiler 
flag -Wlogical-op

It said

lvchange.c:779:10: warning: logical 'or' of collectively exhaustive tests is always true [-Wlogical-op]

Source code is

���������������� ((tmp_str[tmp_str_len - 1] != 't') ||
����������������� (tmp_str[tmp_str_len - 1] != 'y') ||
����������������� (tmp_str[tmp_str_len - 1] != 'n'))))

Suggest swap || for &&

Regards

David Binderman 		 	   		  

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-10-24 15:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-23 20:26 [linux-lvm] LVM2.2.02.103/tools/lvchange.c:779: bad if test ? David Binderman
2013-10-24 11:51 ` Fwd: " Marian Csontos
2013-10-24 15:48   ` Brassow Jonathan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.