From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:52083) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rbpe8-000653-Sc for qemu-devel@nongnu.org; Sat, 17 Dec 2011 03:29:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rbpe6-0006Md-MG for qemu-devel@nongnu.org; Sat, 17 Dec 2011 03:29:32 -0500 From: Stefan Weil Date: Sat, 17 Dec 2011 09:27:35 +0100 Message-Id: <1324110459-3932-8-git-send-email-sw@weilnetz.de> In-Reply-To: <1324110459-3932-1-git-send-email-sw@weilnetz.de> References: <1324110459-3932-1-git-send-email-sw@weilnetz.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 07/11] configure: Fix compiler warnings in config.log (uninitialized variable) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, Stefan Weil warning: =E2=80=98fd=E2=80=99 is used uninitialized in this function warning: =E2=80=98id=E2=80=99 is used uninitialized in this function Signed-off-by: Stefan Weil --- configure | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index b799212..b755ad1 100755 --- a/configure +++ b/configure @@ -2237,7 +2237,7 @@ cat > $TMPC << EOF =20 int main(void) { - int len, fd; + int len, fd =3D 0; len =3D 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 =20 if compile_prog "" "" ; then --=20 1.7.2.5