From c013bc85f45add8c4bc8c7163316bbb90b37a15e Mon Sep 17 00:00:00 2001 From: Rob Hughes Date: Wed, 14 Jul 2021 09:31:31 +0100 Subject: Fix some compile warnings & errors * Fix type of literals * Add explicit casts * #include missing headers * Replace use of non-standard u_int8_t * Remove name of unused variables * Fix DLL export macro - this was broken when some of the exporting headers were moved to a different library. Change-Id: Ie569c8df41a077b46c608798f39526352e2aeb3a Signed-off-by: Rob Hughes --- src/armnn/Threadpool.cpp | 2 +- src/armnn/test/EndToEndTest.cpp | 2 +- src/armnn/test/FlowControl.cpp | 2 +- src/armnn/test/RuntimeTests.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/armnn') diff --git a/src/armnn/Threadpool.cpp b/src/armnn/Threadpool.cpp index a23c1e2339..4289a4b1b7 100644 --- a/src/armnn/Threadpool.cpp +++ b/src/armnn/Threadpool.cpp @@ -194,7 +194,7 @@ void Threadpool::ProcessExecPriorities(uint32_t index) cb->Notify(Status::Success, std::make_pair(startTime, armnn::GetTimeNow())) : cb->Notify(Status::Failure, std::make_pair(startTime, armnn::GetTimeNow())); } - catch (const RuntimeException &error) + catch (const RuntimeException&) { cb->Notify(Status::Failure, std::make_pair(startTime, armnn::GetTimeNow())); } diff --git a/src/armnn/test/EndToEndTest.cpp b/src/armnn/test/EndToEndTest.cpp index 705258e07f..8a64a4b75f 100644 --- a/src/armnn/test/EndToEndTest.cpp +++ b/src/armnn/test/EndToEndTest.cpp @@ -49,7 +49,7 @@ TEST_CASE("ErrorOnLoadNetwork") Optimize(*net, backends, runtime->GetDeviceSpec(), OptimizerOptions(), errMessages); FAIL("Should have thrown an exception."); } - catch (const InvalidArgumentException& e) + catch (const InvalidArgumentException&) { // Different exceptions are thrown on different backends } diff --git a/src/armnn/test/FlowControl.cpp b/src/armnn/test/FlowControl.cpp index de53060c2f..cb56873663 100644 --- a/src/armnn/test/FlowControl.cpp +++ b/src/armnn/test/FlowControl.cpp @@ -58,7 +58,7 @@ TEST_CASE("ErrorOnLoadNetwork") Optimize(*net, backends, runtime->GetDeviceSpec(), OptimizerOptions(), errMessages); FAIL("Should have thrown an exception."); } - catch (const InvalidArgumentException& e) + catch (const InvalidArgumentException&) { // Different exceptions are thrown on different backends } diff --git a/src/armnn/test/RuntimeTests.cpp b/src/armnn/test/RuntimeTests.cpp index 8fa5e3e2f4..4652d1c8cf 100644 --- a/src/armnn/test/RuntimeTests.cpp +++ b/src/armnn/test/RuntimeTests.cpp @@ -270,7 +270,7 @@ TEST_CASE("IVGCVSW_1929_QuantizedSoftmaxIssue") errMessages); FAIL("An exception should have been thrown"); } - catch (const InvalidArgumentException& e) + catch (const InvalidArgumentException&) { // Different exceptions are thrown on different backends } -- cgit v1.2.1