]> git.proxmox.com Git - qemu.git/commitdiff
configure: Fix set-but-not-used warning in Xen 4.1 probe
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 2 Aug 2012 17:30:27 +0000 (18:30 +0100)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 4 Aug 2012 13:25:05 +0000 (13:25 +0000)
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>
configure

index f05b837c09ac1b04dc889c30d1ada236d26afcea..280726c3f8b31815ec80464679a270aa401685be 100755 (executable)
--- a/configure
+++ b/configure
@@ -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);