diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-04-04 18:05:49 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-04-04 18:05:49 +0200 |
commit | 17b4b5d0b22a8ea958b5f799430170c1dde72332 (patch) | |
tree | d354fd847504b07c3be5856de687c87b1180e1d3 /desktop | |
parent | e645eb272b89b1e7344f4b2e24a8f66fca1ce132 (diff) |
...and MSVC "warning C4701: potentially uninitialized local variable used"
Change-Id: I4a7eab0cbca2da04b81867158d15c94eda16d3b2
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/app/officeipcthread.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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<IpcThread> 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 |