From 102bf285e1d0094f490ef7b3b26dfa0c3352eda2 Mon Sep 17 00:00:00 2001 From: Jay Krell Date: Thu, 13 Jun 2019 01:49:29 -0700 Subject: [PATCH] os-event-unix.c: In function 'mono_os_event_wait_multiple': os-event-unix.c:195:12: warning: 'start' may be used uninitialized in this function [-Wmaybe-uninitialized] elapsed = mono_msec_ticks () - start; ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ Commit migrated from https://github.com/mono/mono/commit/bc5d1a48d802fff39383f54b601d9e5fdab6a1df --- src/mono/mono/utils/os-event-unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mono/mono/utils/os-event-unix.c b/src/mono/mono/utils/os-event-unix.c index ef04c1e..8f4de86 100644 --- a/src/mono/mono/utils/os-event-unix.c +++ b/src/mono/mono/utils/os-event-unix.c @@ -118,7 +118,7 @@ mono_os_event_wait_multiple (MonoOSEvent **events, gsize nevents, gboolean waita mono_cond_t signal_cond; OSEventWaitData *data = NULL; gboolean alerted; - gint64 start; + gint64 start = 0; gint i; g_assert (mono_lazy_is_initialized (&status)); -- 2.7.4