From eb1fce0f5b13b479b13a9d265ebdc8792676b163 Mon Sep 17 00:00:00 2001 From: Derek Lamberti Date: Tue, 10 Dec 2019 21:20:10 +0000 Subject: IVGCVSW-4246 Clean build end-to-end tests with -Wextra Change-Id: Ia25f919e45a210e1e2d5d50b0c9098bf01d88013 Signed-off-by: Derek Lamberti --- tests/InferenceTest.hpp | 13 ++++++++++--- tests/InferenceTest.inl | 1 + tests/MobileNetSsdInferenceTest.hpp | 2 ++ tests/NetworkExecutionUtils/NetworkExecutionUtils.hpp | 1 + .../TfLiteInceptionV3Quantized-Armnn.cpp | 2 +- .../TfLiteInceptionV4Quantized-Armnn.cpp | 2 +- tests/TfLiteMnasNet-Armnn/TfLiteMnasNet-Armnn.cpp | 2 +- .../TfLiteMobileNetQuantizedSoftmax-Armnn.cpp | 2 +- .../TfLiteMobilenetQuantized-Armnn.cpp | 2 +- .../TfLiteMobilenetV2Quantized-Armnn.cpp | 2 +- .../TfLiteResNetV2-50-Quantized-Armnn.cpp | 2 +- tests/TfLiteResNetV2-Armnn/TfLiteResNetV2-Armnn.cpp | 2 +- .../TfLiteVGG16Quantized-Armnn.cpp | 2 +- tests/YoloInferenceTest.hpp | 2 ++ 14 files changed, 25 insertions(+), 12 deletions(-) diff --git a/tests/InferenceTest.hpp b/tests/InferenceTest.hpp index 7b7dcecea0..6423d1c7ff 100644 --- a/tests/InferenceTest.hpp +++ b/tests/InferenceTest.hpp @@ -9,7 +9,7 @@ #include #include "InferenceModel.hpp" - +#include #include @@ -91,8 +91,15 @@ class IInferenceTestCaseProvider public: virtual ~IInferenceTestCaseProvider() {} - virtual void AddCommandLineOptions(boost::program_options::options_description& options) {}; - virtual bool ProcessCommandLineOptions(const InferenceTestOptions &commonOptions) { return true; }; + virtual void AddCommandLineOptions(boost::program_options::options_description& options) + { + boost::ignore_unused(options); + }; + virtual bool ProcessCommandLineOptions(const InferenceTestOptions &commonOptions) + { + boost::ignore_unused(commonOptions); + return true; + }; virtual std::unique_ptr GetTestCase(unsigned int testCaseId) = 0; virtual bool OnInferenceTestFinished() { return true; }; }; diff --git a/tests/InferenceTest.inl b/tests/InferenceTest.inl index fd888e2137..c05e70d9f7 100644 --- a/tests/InferenceTest.inl +++ b/tests/InferenceTest.inl @@ -79,6 +79,7 @@ struct ClassifierResultProcessor : public boost::static_visitor<> void operator()(const std::vector& values) { + boost::ignore_unused(values); BOOST_ASSERT_MSG(false, "Non-float predictions output not supported."); } diff --git a/tests/MobileNetSsdInferenceTest.hpp b/tests/MobileNetSsdInferenceTest.hpp index a950b93c1c..c99844b6bb 100644 --- a/tests/MobileNetSsdInferenceTest.hpp +++ b/tests/MobileNetSsdInferenceTest.hpp @@ -33,6 +33,8 @@ public: TestCaseResult ProcessResult(const InferenceTestOptions& options) override { + boost::ignore_unused(options); + const std::vector& output1 = boost::get>(this->GetOutputs()[0]); // bounding boxes BOOST_ASSERT(output1.size() == k_OutputSize1); diff --git a/tests/NetworkExecutionUtils/NetworkExecutionUtils.hpp b/tests/NetworkExecutionUtils/NetworkExecutionUtils.hpp index 279bf30e83..f9e9b146d4 100644 --- a/tests/NetworkExecutionUtils/NetworkExecutionUtils.hpp +++ b/tests/NetworkExecutionUtils/NetworkExecutionUtils.hpp @@ -732,6 +732,7 @@ int RunCsvTest(const armnnUtils::CsvRow &csvRow, const std::shared_ptr; const std::vector& output = boost::get>(this->GetOutputs()[0]); -- cgit v1.2.1