summaryrefslogtreecommitdiffstats
path: root/Tests/TestApp/src/SmartPointerTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/TestApp/src/SmartPointerTest.cpp')
-rw-r--r--Tests/TestApp/src/SmartPointerTest.cpp12
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 &)
{