]> 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)
committerMartin Kletzander <mkletzan@redhat.com>
Mon, 3 Oct 2016 16:30:26 +0000 (18:30 +0200)
commit69acd088d6a7b0d9c18abb62b3c5970348753a69
tree990313cd9a0997403cccdb511ac16d50f95d7e43
parentb1bae2976da3a230e003f86e7214933f812511c3
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>
(cherry picked from commit d713a6b120904c488170e7920c482b2fade70ae1)
m4/virt-compile-warnings.m4
src/fdstream.c
src/internal.h
src/rpc/virnetsshsession.c
src/security/security_selinux.c