From 43dcbbfec7e906ede3d383a0139a05ff8a03481f Mon Sep 17 00:00:00 2001 From: Matt Giuca Date: Tue, 30 Jun 2015 17:23:24 +1000 Subject: [PATCH] Fix "sometimes-uninitialized" warning on Windows Clang. --- src/google/protobuf/compiler/subprocess.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/google/protobuf/compiler/subprocess.cc b/src/google/protobuf/compiler/subprocess.cc index 61ae4381a3..a3cff1f8b8 100644 --- a/src/google/protobuf/compiler/subprocess.cc +++ b/src/google/protobuf/compiler/subprocess.cc @@ -171,7 +171,7 @@ bool Subprocess::Communicate(const Message& input, Message* output, DWORD wait_result = WaitForMultipleObjects(handle_count, handles, FALSE, INFINITE); - HANDLE signaled_handle; + HANDLE signaled_handle = NULL; if (wait_result >= WAIT_OBJECT_0 && wait_result < WAIT_OBJECT_0 + handle_count) { signaled_handle = handles[wait_result - WAIT_OBJECT_0];