From 17b4b5d0b22a8ea958b5f799430170c1dde72332 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 4 Apr 2016 18:05:49 +0200 Subject: ...and MSVC "warning C4701: potentially uninitialized local variable used" Change-Id: I4a7eab0cbca2da04b81867158d15c94eda16d3b2 --- desktop/source/app/officeipcthread.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'desktop') diff --git a/desktop/source/app/officeipcthread.cxx b/desktop/source/app/officeipcthread.cxx index 714ee7d7c3e9..ea3566e4525d 100644 --- a/desktop/source/app/officeipcthread.cxx +++ b/desktop/source/app/officeipcthread.cxx @@ -736,13 +736,13 @@ RequestHandler::Status RequestHandler::Enable(bool ipc) } #endif rtl::Reference thread; - Status stat; + Status stat = Status(); // silence bogus potentially-uninitialized warnings switch (kind) { case Kind::Pipe: stat = PipeIpcThread::enable(&thread); break; -#if ENABLE_DBUS case Kind::Dbus: +#if ENABLE_DBUS stat = DbusIpcThread::enable(&thread); break; #endif -- cgit