From: Stefan Weil Date: Sat, 17 Dec 2011 08:27:35 +0000 (+0100) Subject: configure: Fix compiler warnings in config.log (uninitialized variable) X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=66ea0f223b2521a2277839e568144773fecc8429;p=qemu.git configure: Fix compiler warnings in config.log (uninitialized variable) warning: ‘fd’ is used uninitialized in this function warning: ‘id’ is used uninitialized in this function Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- diff --git a/configure b/configure index eeec8faf55..e3713afd3e 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 < #include -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