[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 13/17] configure: Fix compiler warnings in config.lo
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PATCH 13/17] configure: Fix compiler warnings in config.log (uninitialized variable) |
Date: |
Mon, 19 Dec 2011 11:12:34 +0000 |
From: Stefan Weil <address@hidden>
warning: ‘fd’ is used uninitialized in this function
warning: ‘id’ is used uninitialized in this function
Signed-off-by: Stefan Weil <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
configure | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index eeec8fa..e3713af 100755
--- a/configure
+++ b/configure
@@ -2237,7 +2237,7 @@ cat > $TMPC << EOF
int main(void)
{
- int len, fd;
+ int len, fd = 0;
len = tee(STDIN_FILENO, STDOUT_FILENO, INT_MAX, SPLICE_F_NONBLOCK);
splice(STDIN_FILENO, NULL, fd, NULL, len, SPLICE_F_MOVE);
return 0;
@@ -2449,7 +2449,7 @@ fi
cat > $TMPC <<EOF
#include <signal.h>
#include <time.h>
-int main(void) { clockid_t id; return clock_gettime(id, NULL); }
+int main(void) { return clock_gettime(CLOCK_REALTIME, NULL); }
EOF
if compile_prog "" "" ; then
--
1.7.7.3
- [Qemu-devel] [PATCH 04/17] kvm: Print something before calling abort() if KVM_RUN fails, (continued)
- [Qemu-devel] [PATCH 04/17] kvm: Print something before calling abort() if KVM_RUN fails, Stefan Hajnoczi, 2011/12/19
- [Qemu-devel] [PATCH 07/17] configure: Fix compiler warnings in config.log (always return a value from main), Stefan Hajnoczi, 2011/12/19
- [Qemu-devel] [PATCH 05/17] slirp: Fix typo in net_slirp_hostfwd_remove, Stefan Hajnoczi, 2011/12/19
- [Qemu-devel] [PATCH 01/17] ide: drop argument to dma_buf_commit, Stefan Hajnoczi, 2011/12/19
- [Qemu-devel] [PATCH 09/17] configure: Fix compiler warning in config.log (integer from pointer), Stefan Hajnoczi, 2011/12/19
- [Qemu-devel] [PATCH 08/17] configure: Fix compiler warnings in config.log (old-style function definition), Stefan Hajnoczi, 2011/12/19
- [Qemu-devel] [PATCH 12/17] configure: Fix compiler warning in config.log (macro redefined), Stefan Hajnoczi, 2011/12/19
- [Qemu-devel] [PATCH 16/17] configure: Fix compiler warnings in config.log (statement without effect), Stefan Hajnoczi, 2011/12/19
- [Qemu-devel] [PATCH 14/17] configure: Fix compiler warning in config.log (undefined NULL), Stefan Hajnoczi, 2011/12/19
- [Qemu-devel] [PATCH 15/17] configure: Fix compiler warning in config.log (value was never used), Stefan Hajnoczi, 2011/12/19
- [Qemu-devel] [PATCH 13/17] configure: Fix compiler warnings in config.log (uninitialized variable),
Stefan Hajnoczi <=
- [Qemu-devel] [PATCH 17/17] configure: Improve Xen autodetection for hosts without Xen, Stefan Hajnoczi, 2011/12/19
- [Qemu-devel] [PATCH 11/17] configure: Fix compiler warning in config.log (unused variable), Stefan Hajnoczi, 2011/12/19
- [Qemu-devel] [PATCH 10/17] configure: Fix compiler warnings in config.log (null arguments), Stefan Hajnoczi, 2011/12/19
- Re: [Qemu-devel] [PULL 00/17] Trivial patches for 7 to 19 December 2011, Anthony Liguori, 2011/12/19