qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 11/17] configure: Fix compiler warning in config.log


From: Stefan Hajnoczi
Subject: [Qemu-devel] [PATCH 11/17] configure: Fix compiler warning in config.log (unused variable)
Date: Mon, 19 Dec 2011 11:12:32 +0000

From: Stefan Weil <address@hidden>

warning: unused variable ‘iov’

Signed-off-by: Stefan Weil <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
 configure |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/configure b/configure
index 4e596e6..f2c2a27 100755
--- a/configure
+++ b/configure
@@ -2060,7 +2060,7 @@ cat > $TMPC <<EOF
 #include <sys/types.h>
 #include <sys/uio.h>
 #include <unistd.h>
-int main(void) { struct iovec iov; return 0; }
+int main(void) { return sizeof(struct iovec); }
 EOF
 iovec=no
 if compile_prog "" "" ; then
-- 
1.7.7.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]