[Libvirt-ci] Passed: libvirt/libvirt#201 (master - 1ba6939)

Travis CI builds at travis-ci.org
Thu Jun 15 12:53:56 UTC 2017


Build Update for libvirt/libvirt
-------------------------------------

Build: #201
Status: Passed

Duration: 23 minutes and 4 seconds
Commit: 1ba6939 (master)
Author: Daniel P. Berrange
Message: Disable the -Wduplicated-branches warning

Depending on the platform/architecture, a number of conditionals
in libvirt code expand the same on both branches. This is expected
behaviour and harmless, so disable the warning to avoid creating
unexpected build failures

Two examples, mingw32:

../../src/util/vircommand.c: In function 'virCommandWait':
../../src/util/vircommand.c:2562:51: error: this condition has identical branches [-Werror=duplicated-branches]
             *exitstatus = cmd->rawStatus ? status : WEXITSTATUS(status);
                                                   ^
and gcc7.1

In file included from util/virobject.c:28:0:
util/virobject.c: In function 'virClassNew':
util/viratomic.h:176:46: error: this condition has identical branches [-Werror=duplicated-branches]
            (void)(0 ? *(atomic) ^ *(atomic) : 0);                      \
                                             ^
util/virobject.c:144:20: note: in expansion of macro 'virAtomicIntInc'
    klass->magic = virAtomicIntInc(&magicCounter);
                   ^~~~~~~~~~~~~~~

Signed-off-by: Daniel P. Berrange <berrange at redhat.com>

View the changeset: https://github.com/libvirt/libvirt/compare/f0a3fe1b0a29...1ba693994a0e

View the full build log and details: https://travis-ci.org/libvirt/libvirt/builds/243244113?utm_source=email&utm_medium=notification

--

You can configure recipients for build notifications in your .travis.yml file. See https://docs.travis-ci.com/user/notifications

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-ci/attachments/20170615/a00c1bdc/attachment.htm>


More information about the Libvirt-ci mailing list