From 74e6d37276564d4be1f60d9edb76d7d066395773 Mon Sep 17 00:00:00 2001 From: Andrew Dunstan Date: Mon, 25 Jul 2011 19:37:17 -0400 Subject: [PATCH] Silence compiler warning about uninitialized variable. It is set correctly on the only path that uses it, but the compiler can't know that. --- src/backend/port/win32_latch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/port/win32_latch.c b/src/backend/port/win32_latch.c index ef61b0184d..b35441b3bf 100644 --- a/src/backend/port/win32_latch.c +++ b/src/backend/port/win32_latch.c @@ -98,7 +98,7 @@ WaitLatchOrSocket(volatile Latch *latch, int wakeEvents, SOCKET sock, HANDLE sockevent = WSA_INVALID_EVENT; int numevents; int result = 0; - int pmdeath_eventno; + int pmdeath_eventno = 0; long timeout_ms; Assert(wakeEvents != 0); -- 2.40.0