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 --- src/backends/backendsCommon/test/JsonPrinterTestImpl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/backends/backendsCommon/test/JsonPrinterTestImpl.cpp') diff --git a/src/backends/backendsCommon/test/JsonPrinterTestImpl.cpp b/src/backends/backendsCommon/test/JsonPrinterTestImpl.cpp index 2aa713f1ed..50dc61b1f4 100644 --- a/src/backends/backendsCommon/test/JsonPrinterTestImpl.cpp +++ b/src/backends/backendsCommon/test/JsonPrinterTestImpl.cpp @@ -65,7 +65,7 @@ std::vector ExtractMeasurements(const std::string& exp) armnn::stringUtils::StringTrim(numberString, "\t,\n"); numbers.push_back(std::stod(numberString)); } - catch (std::invalid_argument const& e) + catch (std::invalid_argument const&) { BOOST_FAIL("Could not convert measurements to double: " + numberString); } @@ -80,7 +80,7 @@ std::vector ExtractMeasurements(const std::string& exp) armnn::stringUtils::StringTrim(numberString, "\t,\n"); numbers.push_back(std::stod(numberString)); } - catch (std::invalid_argument const& e) + catch (std::invalid_argument const&) { BOOST_FAIL("Could not convert measurements to double: " + numberString); } -- cgit v1.2.1