]> 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:10:15 +0000 (18:10 +0200)
commitec7040c0007e1a0cc3c49c86e82c2ae016ff94f9
treee32f8d65b46eff8ba5d3fe48be56911124e4d8db
parent6a293aa29e5b26b67da45fcd79c9730f3457f441
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