From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:49529) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1H45-0000HE-3B for qemu-devel@nongnu.org; Fri, 01 Feb 2013 08:54:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U1H40-0006SQ-Jm for qemu-devel@nongnu.org; Fri, 01 Feb 2013 08:54:00 -0500 Received: from mx1.redhat.com ([209.132.183.28]:25696) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1H40-0006SM-CU for qemu-devel@nongnu.org; Fri, 01 Feb 2013 08:53:56 -0500 From: Stefan Hajnoczi Date: Fri, 1 Feb 2013 14:53:20 +0100 Message-Id: <1359726808-11728-2-git-send-email-stefanha@redhat.com> In-Reply-To: <1359726808-11728-1-git-send-email-stefanha@redhat.com> References: <1359726808-11728-1-git-send-email-stefanha@redhat.com> Subject: [Qemu-devel] [PATCH v2 1/9] main-loop: fix select_ret uninitialized variable warning List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Anthony Liguori , Jan Kiszka , Fabien Chouteau , Stefan Hajnoczi , Paolo Bonzini , Amos Kong Signed-off-by: Stefan Hajnoczi --- main-loop.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main-loop.c b/main-loop.c index 6f52ac3..d0d8fe4 100644 --- a/main-loop.c +++ b/main-loop.c @@ -330,7 +330,8 @@ void qemu_fd_register(int fd) static int os_host_main_loop_wait(uint32_t timeout) { GMainContext *context = g_main_context_default(); - int select_ret, g_poll_ret, ret, i; + int select_ret = 0; + int g_poll_ret, ret, i; PollingEntry *pe; WaitObjects *w = &wait_objects; gint poll_timeout; -- 1.8.1