qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] configure: fix libcap detection
@ 2012-07-30 11:41 Avi Kivity
  2012-07-30 12:58 ` Peter Maydell
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Avi Kivity @ 2012-07-30 11:41 UTC (permalink / raw)
  To: Anthony Liguori, qemu-devel

 - avoid assigned-but-not-used error
 - avoid missing return error

Signed-off-by: Avi Kivity <avi@redhat.com>
---
 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 <<EOF
 #include <stdio.h>
 #include <sys/capability.h>
-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

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-07-31 18:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-30 11:41 [Qemu-devel] [PATCH] configure: fix libcap detection Avi Kivity
2012-07-30 12:58 ` Peter Maydell
2012-07-30 22:04 ` Richard W.M. Jones
2012-07-31  6:52 ` Aneesh Kumar K.V
2012-07-31 16:33   ` Stefan Weil
2012-07-31 16:40     ` Peter Maydell
2012-07-31 17:06       ` Blue Swirl
2012-07-31 17:56       ` Blue Swirl
2012-07-31 17:59         ` Peter Maydell
2012-07-31 17:35     ` Aneesh Kumar K.V

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).