summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-04-04 18:05:49 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-04-04 18:05:49 +0200
commit17b4b5d0b22a8ea958b5f799430170c1dde72332 (patch)
treed354fd847504b07c3be5856de687c87b1180e1d3 /desktop
parente645eb272b89b1e7344f4b2e24a8f66fca1ce132 (diff)
...and MSVC "warning C4701: potentially uninitialized local variable used"
Change-Id: I4a7eab0cbca2da04b81867158d15c94eda16d3b2
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/app/officeipcthread.cxx4
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