]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
build: avoid older gcc warning
authorEric Blake <eblake@redhat.com>
Wed, 26 Sep 2012 17:16:36 +0000 (11:16 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 26 Sep 2012 17:19:34 +0000 (11:19 -0600)
commit3da355e8c418c6db4023cc35512c7f47a78851ce
treeb46154122d2af706846d3b9a552e80ee6c02e8ae
parentadae5cf733b19c77db137ff6f6e1e0c9524d23dc
build: avoid older gcc warning

Jim Fehlig reported a compilation error with older gcc 4.3.4:

libvirt.c: In function 'virDomainGetEmulatorPinInfo':
libvirt.c:9111: error: logical '&&' with non-zero constant will always evaluate as true [-Wlogical-op]

It looks like someone programmed via too much copy-and-paste.

* src/libvirt.c (virDomainGetEmulatorPinInfo): Multiplying by 1 is
a no-op, and thus will never overflow.
src/libvirt.c