From bb46dde88befe14583eaac83f65775a7543d4586 Mon Sep 17 00:00:00 2001 From: Rob Hughes Date: Wed, 20 May 2020 15:27:37 +0100 Subject: Fix a few build warnings: * Remove redundant asserts for unsigned ints being positive * Remove unneeded include of lightweight_test.hpp header * Remove unused exception variable names * Replace hardcoded 0.0f with T() for some template functions * Add a few static_casts Change-Id: I290b0433cf995f6d0199422eaa10f816e5fd8eb9 Signed-off-by: Robert Hughes --- tests/NetworkExecutionUtils/NetworkExecutionUtils.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/NetworkExecutionUtils/NetworkExecutionUtils.hpp b/tests/NetworkExecutionUtils/NetworkExecutionUtils.hpp index ff28eb4f3b..977a114bfd 100644 --- a/tests/NetworkExecutionUtils/NetworkExecutionUtils.hpp +++ b/tests/NetworkExecutionUtils/NetworkExecutionUtils.hpp @@ -637,7 +637,8 @@ int RunTest(const std::string& format, try { // Coverity fix: An exception of type armnn::InvalidArgumentException is thrown and never caught. - inputTensorShapes.push_back(std::make_unique(dims.size(), dims.data())); + inputTensorShapes.push_back( + std::make_unique(static_cast(dims.size()), dims.data())); } catch (const armnn::InvalidArgumentException& e) { -- cgit v1.2.1