[Libvirt-ci] Fixed: libvirt/libvirt#2560 (master - 3b7c5ab)

Travis CI builds at travis-ci.org
Fri Aug 16 07:38:55 UTC 2019


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

Build: #2560
Status: Fixed

Duration: 21 mins and 20 secs
Commit: 3b7c5ab (master)
Author: Michal Privoznik
Message: remote_daemon_dispatch.c: typecast ARRAY_CARDINALITY() in remoteDispatchProbeURI()

Since users can enable/disable drivers at compile time, it may
happen that @drivers array is in fact empty (in both its
occurrences within the function). This means that
ARRAY_CARDINALITY() returns 0UL which makes gcc unhappy because
of loop condition:

  i < ARRAY_CARDINALITY(drivers)

GCC complains that @i is unsigned and comparing an unsigned value
against 0 is always false. However, changing the type of @i to
ssize_t is not enough, because compiler still sees the unsigned
zero. The solution is to typecast the ARRAY_CARDINALITY().

Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
Reviewed-by: Jim Fehlig <jfehlig at suse.com>

View the changeset: https://github.com/libvirt/libvirt/compare/49520e9e7d1c...3b7c5ab983f4

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

--

You can unsubscribe from build emails from the libvirt/libvirt repository going to https://travis-ci.org/account/preferences/unsubscribe?repository=4872032&utm_medium=notification&utm_source=email.
Or unsubscribe from *all* email updating your settings at https://travis-ci.org/account/preferences/unsubscribe?utm_medium=notification&utm_source=email.
Or configure specific 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/20190816/babc3f50/attachment.htm>


More information about the Libvirt-ci mailing list