]> xenbits.xensource.com Git - libvirt.git/commit
virHostCPUGetInfo: Fix build on non-Unix like systems
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 14 Jun 2016 14:46:06 +0000 (16:46 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 15 Jun 2016 07:44:46 +0000 (09:44 +0200)
commit8ce58b0081e301375913c9147ae4daeed01fd37e
tree1706ea54bb3e76a13c621d0792f511c67ddcd1cb
parent442cdb817e0d29c94f98bf9c534d609f7d10380a
virHostCPUGetInfo: Fix build on non-Unix like systems

This function is plenty of ifdefs providing implementations for
Linux, *BSD and OS-X. However, if we are being build for any
other architecture, all that's left behind by preprocessor is
just a error reporting call and return of -1. In that case,
passed arguments are unused:

../../src/util/virhostcpu.c: In function 'virHostCPUGetInfo':
../../src/util/virhostcpu.c:966:33: error: unused parameter 'cpus' [-Werror=unused-parameter]
                   unsigned int *cpus,
                                 ^~~~

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virhostcpu.c