[Symphony] Master/main.c:486: bad if test ?

David Binderman dcb314 at hotmail.com
Sat Nov 19 03:54:12 EST 2016


Hello there,


Master/main.c:486:24: warning: logical 'or' of collectively exhaustive tests is always true [-Wlogical-op]


Source code is


        if (last_level != 0 || last_level !=1)


Maybe better code


        if (last_level != 0 && last_level !=1)


Regards


David Binderman

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/symphony/attachments/20161119/23cc6ca3/attachment.html>


More information about the Symphony mailing list