From 3f5044e8657c02b8bfa4f62f8b23a4e5ca61e0af Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Fri, 16 Feb 2018 20:53:09 -0800 Subject: Fixed few compiler warnings --- Tests/TestApp/include/SmartPointerTest.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Tests/TestApp/include') diff --git a/Tests/TestApp/include/SmartPointerTest.h b/Tests/TestApp/include/SmartPointerTest.h index a9e6b6d..1e22a7d 100644 --- a/Tests/TestApp/include/SmartPointerTest.h +++ b/Tests/TestApp/include/SmartPointerTest.h @@ -65,7 +65,7 @@ public: std::vector m_Threads; static void WorkerThreadFunc(SmartPointerTest *This, size_t ThreadNum); - Object *m_pSharedObject; + Object *m_pSharedObject = nullptr; void StartConcurrencyTest(); void RunConcurrencyTest(); void WaitForThreadStart(int VarId); @@ -80,5 +80,5 @@ public: #endif std::mutex m_Mtx; std::condition_variable m_CondVar; - bool m_bThreadStart[2]; + bool m_bThreadStart[2] = {false, false}; }; -- cgit v1.2.3