]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
build: avoid 32-bit failure on older gcc
authorEric Blake <eblake@redhat.com>
Thu, 20 Nov 2014 15:29:23 +0000 (08:29 -0700)
committerEric Blake <eblake@redhat.com>
Thu, 20 Nov 2014 15:32:30 +0000 (08:32 -0700)
commit0d5168392f0f1c65f8ad60b9533371eca89b5940
tree941bf8ec2bfabc569532efc428e5f00c72288e76
parent512b8747d82c682d002f21249a934927da193e78
build: avoid 32-bit failure on older gcc

On 32-bit platforms with old gcc (hello RHEL 5 gcc 4.1.2), the
build fails with:
virsh-domain.c: In function 'cmdBlockCopy':
virsh-domain.c:2172: warning: comparison is always false due to limited range of data type

Adjust the code to silence the warning.

* tools/virsh-domain.c (cmdBlockCopy): Pacify RHEL 5 gcc.

Signed-off-by: Eric Blake <eblake@redhat.com>
tools/virsh-domain.c