diff --git a/cmd/synergyc/synergyc.cpp b/cmd/synergyc/synergyc.cpp index 4f72a6bd9..e1aabab0b 100644 --- a/cmd/synergyc/synergyc.cpp +++ b/cmd/synergyc/synergyc.cpp @@ -255,7 +255,7 @@ static int runMainInThread(void) { - int result; + int result = 0; CThread appThread(new CFunctionJob(&realMainEntry, &result)); try { #if WINDOWS_LIKE diff --git a/cmd/synergys/synergys.cpp b/cmd/synergys/synergys.cpp index d85c4c6b6..8cf18f88a 100644 --- a/cmd/synergys/synergys.cpp +++ b/cmd/synergys/synergys.cpp @@ -277,7 +277,7 @@ static int runMainInThread(void) { - int result; + int result = 0; CThread appThread(new CFunctionJob(&realMainEntry, &result)); try { #if WINDOWS_LIKE diff --git a/lib/platform/CMSWindowsPrimaryScreen.cpp b/lib/platform/CMSWindowsPrimaryScreen.cpp index bee3ceb80..db73e8611 100644 --- a/lib/platform/CMSWindowsPrimaryScreen.cpp +++ b/lib/platform/CMSWindowsPrimaryScreen.cpp @@ -544,7 +544,6 @@ CMSWindowsPrimaryScreen::onPreDispatch(const CEvent* event) } // handle event - const MSG* msg = &event->m_msg; switch (msg->message) { case SYNERGY_MSG_MARK: m_markReceived = msg->wParam;