From: Ivan Maidanski Date: Mon, 18 Jun 2018 21:59:23 +0000 (+0300) Subject: Eliminate 'variable might be uninitialized' warning in win32_start_inner X-Git-Tag: v7.4.14~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fcdd41ebe23ed5cf793e93aa8d489d7a91dc5c0b;p=gc Eliminate 'variable might be uninitialized' warning in win32_start_inner * win32_threads.c [!__GNUC__] (GC_win32_start_inner): Initialize ret local variable (to null) before try-finally block; add comment. --- diff --git a/win32_threads.c b/win32_threads.c index 86cd1c98..fa55288d 100644 --- a/win32_threads.c +++ b/win32_threads.c @@ -2133,6 +2133,7 @@ GC_INNER void GC_get_next_stack(char *start, char *limit, /* This is probably pointless, since an uncaught exception is */ /* supposed to result in the process being killed. */ # ifndef __GNUC__ + ret = NULL; /* to suppress "might be uninitialized" compiler warning */ __try # endif {