diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-02-17 04:53:09 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-02-17 04:53:09 +0000 |
| commit | 3f5044e8657c02b8bfa4f62f8b23a4e5ca61e0af (patch) | |
| tree | e79e66073cf84037846358f2c7f78d6ff11e4167 /Tests/TestApp/src/SmartPointerTest.cpp | |
| parent | Enabled TestApp on iOS (diff) | |
| download | DiligentEngine-3f5044e8657c02b8bfa4f62f8b23a4e5ca61e0af.tar.gz DiligentEngine-3f5044e8657c02b8bfa4f62f8b23a4e5ca61e0af.zip | |
Fixed few compiler warnings
Diffstat (limited to 'Tests/TestApp/src/SmartPointerTest.cpp')
| -rw-r--r-- | Tests/TestApp/src/SmartPointerTest.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
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<Object>()).Detach(); + (void)pRawPtr4; pRawPtr4->Release(); } } @@ -563,6 +564,7 @@ SmartPointerTest::SmartPointerTest() : try { auto *pExceptionTest = MakeNewObj<ExceptionTest1>(); + (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 &) { |
