[Swan-dev] libreswan-3.5/lib/libswan/subnettot.c:29: possible bad if test ?
Paul Wouters
paul at nohats.ca
Wed Oct 23 19:32:31 EEST 2013
On Wed, 23 Oct 2013, David Binderman wrote:
> I just compile libreswan-3.5 with the extra compiler flag -Wlogical-op
>
> It said
>
> /home/dcb/rpmbuild/BUILD/libreswan-3.5/lib/libswan/subnettot.c:29:3: warning: logical 'and' of mutually exclusive tests is always false [-Wlogical-op]
> /home/dcb/rpmbuild/BUILD/libreswan-3.5/lib/libswan/subnettot.c:35:3: warning: logical 'and' of mutually exclusive tests is always false [-Wlogical-op]
Wow. That has been in the original function since its inception in 2006
Fixed. Thanks!
Paul
More information about the Swan-dev
mailing list