From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:33408) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Svy5F-0002B3-GC for qemu-devel@nongnu.org; Mon, 30 Jul 2012 18:05:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Svy5E-0005cm-A2 for qemu-devel@nongnu.org; Mon, 30 Jul 2012 18:05:01 -0400 Received: from mx1.redhat.com ([209.132.183.28]:3598) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Svy5E-0005ci-2D for qemu-devel@nongnu.org; Mon, 30 Jul 2012 18:05:00 -0400 Date: Mon, 30 Jul 2012 23:04:57 +0100 From: "Richard W.M. Jones" Message-ID: <20120730220457.GC4000@amd.home.annexia.org> References: <1343648493-27905-1-git-send-email-avi@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1343648493-27905-1-git-send-email-avi@redhat.com> Subject: Re: [Qemu-devel] [PATCH] configure: fix libcap detection List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: qemu-devel@nongnu.org, Anthony Liguori On Mon, Jul 30, 2012 at 02:41:33PM +0300, Avi Kivity wrote: > - avoid assigned-but-not-used error > - avoid missing return error > > Signed-off-by: Avi Kivity > --- > configure | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/configure b/configure > index 7767aca..5fb449d 100755 > --- a/configure > +++ b/configure > @@ -2099,7 +2099,7 @@ if test "$cap" != "no" ; then > cat > $TMPC < #include > #include > -int main(void) { cap_t caps; caps = cap_init(); } > +int main(void) { cap_t caps; caps = cap_init(); (void)caps; return 0; } > EOF > if compile_prog "" "-lcap" ; then > cap=yes > -- > 1.7.11.3 > I tested this patch and it fixes 9p detection for me. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v