]> git.ipfire.org Git - thirdparty/libvirt.git/commit
build: add GCC 6.0 -Wlogical-op workaround
authorPavel Hrdina <phrdina@redhat.com>
Sun, 10 Apr 2016 16:22:20 +0000 (18:22 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 11 Apr 2016 10:09:14 +0000 (12:09 +0200)
commitd713a6b120904c488170e7920c482b2fade70ae1
tree5dff90a77f18e84269ae6e28a75adae5e4e84b9e
parent7fb81831fc497aa4a34fdfc036be9c9ae4401084
build: add GCC 6.0 -Wlogical-op workaround

fdstream.c: In function 'virFDStreamWrite':
fdstream.c:390:29: error: logical 'or' of equal expressions [-Werror=logical-op]
        if (errno == EAGAIN || errno == EWOULDBLOCK) {
                            ^~

Fedora rawhide now uses gcc 6.0 and there is a bug with -Wlogical-op
producing false warnings.

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69602

Use GCC pragma push/pop and ignore -Wlogical-op for GCC that supports
push/pop pragma and also has this bug.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
m4/virt-compile-warnings.m4
src/fdstream.c
src/internal.h
src/rpc/virnetsshsession.c
src/security/security_selinux.c