[libvirt] [PATCH] build: work around gcc 6.0 warnings

Martin Kletzander mkletzan at redhat.com
Mon Feb 29 14:41:20 UTC 2016


On Wed, Feb 24, 2016 at 02:29:58PM -0700, Eric Blake wrote:
>gcc 6.0 added an annoying warning:
>
>fdstream.c: In function 'virFDStreamWrite':
>fdstream.c:390:29: error: logical 'or' of equal expressions [-Werror=logical-op]
>        if (errno == EAGAIN || errno == EWOULDBLOCK) {
>                            ^~
>fdstream.c: In function 'virFDStreamRead':
>fdstream.c:440:29: error: logical 'or' of equal expressions [-Werror=logical-op]
>        if (errno == EAGAIN || errno == EWOULDBLOCK) {
>                            ^~
>
>This makes it impossible to build out-of-the-box on rawhide,
>and we aren't guaranteed that the gcc bug will be fixed in a
>timely manner:
>https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69602
>
>So work around it by further complicating the logic to thwart the
>compiler.
>
>Signed-off-by: Eric Blake <eblake at redhat.com>
>---
>
>This is a build-breaker fix for rawhide; but I'll wait for a day
>for any reasons why I should not push it during freeze.
>

It looks like you're still talking this over and thinking about
approaches.  But could we push the fix for the time being so that the
release is nicely buildable and then work on making it nicer later?  I'd
vote ACK for that.

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20160229/5555dc1c/attachment-0001.sig>


More information about the libvir-list mailing list