From: Peter Maydell <peter.maydell@linaro.org>
To: qemu-devel@nongnu.org
Cc: Blue Swirl <blauwirbel@gmail.com>,
Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
patches@linaro.org
Subject: [Qemu-devel] [PATCH 2/2] configure: Fix set-but-not-used warning in Xen 4.1 probe
Date: Thu, 2 Aug 2012 18:30:27 +0100 [thread overview]
Message-ID: <1343928627-11311-3-git-send-email-peter.maydell@linaro.org> (raw)
In-Reply-To: <1343928627-11311-1-git-send-email-peter.maydell@linaro.org>
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>
---
configure | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/configure b/configure
index c47e440..fe65ab1 100755
--- a/configure
+++ b/configure
@@ -1432,9 +1432,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);
--
1.7.9.5
next prev parent reply other threads:[~2012-08-02 17:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-02 17:30 [Qemu-devel] [PATCH 0/2] configure: fix minor issues in Xen checks Peter Maydell
2012-08-02 17:30 ` [Qemu-devel] [PATCH 1/2] configure: Don't run Xen compile checks in subshells Peter Maydell
2012-08-04 16:13 ` Blue Swirl
2012-08-02 17:30 ` Peter Maydell [this message]
2012-08-03 10:39 ` [Qemu-devel] [PATCH 0/2] configure: fix minor issues in Xen checks Stefano Stabellini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1343928627-11311-3-git-send-email-peter.maydell@linaro.org \
--to=peter.maydell@linaro.org \
--cc=blauwirbel@gmail.com \
--cc=patches@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=stefano.stabellini@eu.citrix.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).