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/src/SmartPointerTest.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'Tests/TestApp/src/SmartPointerTest.cpp') diff --git a/Tests/TestApp/src/SmartPointerTest.cpp b/Tests/TestApp/src/SmartPointerTest.cpp index dbeed7f..59cbae8 100644 --- a/Tests/TestApp/src/SmartPointerTest.cpp +++ b/Tests/TestApp/src/SmartPointerTest.cpp @@ -280,10 +280,9 @@ void SmartPointerTest::RunConcurrencyTest() } -SmartPointerTest::SmartPointerTest() : - m_bThreadStart{false, false}, - m_NumThreadsCompleted(0), - m_pSharedObject(nullptr) +SmartPointerTest::SmartPointerTest() : + m_pSharedObject(nullptr), + m_NumThreadsCompleted(0) { // Test constructors of RefCntAutoPtr { @@ -333,7 +332,9 @@ SmartPointerTest::SmartPointerTest() : pRawPtr2->Release(); auto *pRawPtr3 = SmartPtr().Detach(); + (void)pRawPtr3; auto *pRawPtr4 = SmartPtr(MakeNewObj()).Detach(); + (void)pRawPtr4; pRawPtr4->Release(); } } @@ -563,6 +564,7 @@ SmartPointerTest::SmartPointerTest() : try { auto *pExceptionTest = MakeNewObj(); + (void)pExceptionTest; } catch(std::runtime_error &) { @@ -589,6 +591,7 @@ SmartPointerTest::SmartPointerTest() : try { auto *pExceptionTest = NEW_RC_OBJ( DefaultRawMemoryAllocator::GetAllocator(), "Test object", ExceptionTest2)(); + (void)pExceptionTest; } catch(std::runtime_error &) { @@ -625,6 +628,7 @@ SmartPointerTest::SmartPointerTest() : try { auto *pExceptionTest = NEW_RC_OBJ( DefaultRawMemoryAllocator::GetAllocator(), "Test object", ExceptionTest3)(); + (void)pExceptionTest; } catch(std::runtime_error &) { -- cgit v1.2.3