diff options
author | Peter Maydell | 2012-08-02 19:30:27 +0200 |
---|---|---|
committer | Blue Swirl | 2012-08-04 15:25:05 +0200 |
commit | 9b4c0b56b5f0b341ffa41238e3d2e96ec3b031d9 (patch) | |
tree | 658f321f23f1d9d35690d13d347e8ef95ccb3f5c /configure | |
parent | configure: Don't run Xen compile checks in subshells (diff) | |
download | qemu-9b4c0b56b5f0b341ffa41238e3d2e96ec3b031d9.tar.gz qemu-9b4c0b56b5f0b341ffa41238e3d2e96ec3b031d9.tar.xz qemu-9b4c0b56b5f0b341ffa41238e3d2e96ec3b031d9.zip |
configure: Fix set-but-not-used warning in Xen 4.1 probe
The Xen 4.1 probe never uses the return value from xc_interface_open(),
so was provoking a compiler warning on newer gcc. Fix by not bothering
to put the return value anywhere.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1431,9 +1431,8 @@ EOF # error HVM_MAX_VCPUS not defined #endif int main(void) { - xc_interface *xc; xs_daemon_open(); - xc = xc_interface_open(0, 0, 0); + xc_interface_open(0, 0, 0); xc_hvm_set_mem_type(0, 0, HVMMEM_ram_ro, 0, 0); xc_gnttab_open(NULL, 0); xc_domain_add_to_physmap(0, 0, XENMAPSPACE_gmfn, 0, 0); |