[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] configure: Fix configure error with --enable-virtfs
From: |
Aneesh Kumar K.V |
Subject: |
[Qemu-devel] [PATCH] configure: Fix configure error with --enable-virtfs |
Date: |
Tue, 31 Jul 2012 12:12:50 +0530 |
From: "Aneesh Kumar K.V" <address@hidden>
This fix the below error on ubuntu 12.04
a.c: In function ‘main’:
a.c:3:24: error: variable ‘caps’ set but not used
[-Werror=unused-but-set-variable]
a.c:3:1: error: control reaches end of non-void function [-Werror=return-type]
Signed-off-by: Aneesh Kumar K.V <address@hidden>
---
configure | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index c65b5f6..749bd8b 100755
--- a/configure
+++ b/configure
@@ -2084,7 +2084,11 @@ 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_init();
+ return 0;
+}
EOF
if compile_prog "" "-lcap" ; then
cap=yes
--
1.7.10
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH] configure: Fix configure error with --enable-virtfs,
Aneesh Kumar K.V <=