[Libreoffice-commits] core.git: desktop/source

Stephan Bergmann sbergman at redhat.com
Mon Apr 4 16:06:19 UTC 2016


 desktop/source/app/officeipcthread.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 17b4b5d0b22a8ea958b5f799430170c1dde72332
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Apr 4 18:05:49 2016 +0200

    ...and MSVC "warning C4701: potentially uninitialized local variable used"
    
    Change-Id: I4a7eab0cbca2da04b81867158d15c94eda16d3b2

diff --git a/desktop/source/app/officeipcthread.cxx b/desktop/source/app/officeipcthread.cxx
index 714ee7d..ea3566e 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


More information about the Libreoffice-commits mailing list