Re: runloop.c: 2 * bad if tests

Michael Sweet <[email protected]>
Newsgroups gmane.comp.printing.cups.bugs
Message-ID <[email protected]>
David,

Please file a bug:

    http://www.cups.org/str.php


On Aug 27, 2012, at 2:47 PM, David Binderman <[email protected]> wrote:

> 
> I just tried a compile of cups-1.6.1 with
> extra compiler flag -Wlogical-op.
> 
> The compiler said
> 
> runloop.c: In function 'backendDrainOutput':
> runloop.c:93:7: warning: logical 'or' of collectively exhaustive tests is always true [-Wlogical-op]
>       if (errno != EAGAIN || errno != EINTR)
>       ^
> runloop.c: In function 'backendRunLoop':
> runloop.c:321:2: warning: logical 'or' of collectively exhaustive tests is always true [-Wlogical-op]
>  if (errno != EAGAIN || errno != EINTR)
>  ^
> 
> Suggest swap || for &&
> 
> _______________________________________________
> cups-bugs mailing list
> [email protected]
> http://lists.easysw.com/mailman/listinfo/cups-bugs

__________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.