From 6bff195a51915fd88c1aa1904cf269dbd1a04f50 Mon Sep 17 00:00:00 2001 From: Michalis Spyrou Date: Wed, 2 Oct 2019 17:22:11 +0100 Subject: COMPMID-2486: Remove disabled compiler warnings Removed -Wno-unused-parameter and -Wno-deprecated-declarations compilation flags. Plus, 3RDPARTY_UPDATE. Change-Id: I43098c7af527d5651aad3c597b508a56f8813dda Signed-off-by: Michalis Spyrou Reviewed-on: https://review.mlplatform.org/c/2041 Comments-Addressed: Arm Jenkins Reviewed-by: Georgios Pinitas Tested-by: Arm Jenkins --- tests/validation/reference/ColorConvert.cpp | 6 +++--- tests/validation/reference/ColorConvertHelper.h | 4 ++-- tests/validation/reference/ROIAlignLayer.cpp | 2 ++ 3 files changed, 7 insertions(+), 5 deletions(-) (limited to 'tests/validation/reference') diff --git a/tests/validation/reference/ColorConvert.cpp b/tests/validation/reference/ColorConvert.cpp index 9090319a86..a759594cfa 100644 --- a/tests/validation/reference/ColorConvert.cpp +++ b/tests/validation/reference/ColorConvert.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2018 ARM Limited. + * Copyright (c) 2017-2019 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -170,7 +170,7 @@ std::vector> color_convert(const TensorShape &shape, const std:: { case Format::RGB888: case Format::RGBA8888: - colorconvert_helper::detail::colorconvert_iyuv_to_rgb(shape, tensor_planes, dst[0]); + colorconvert_helper::detail::colorconvert_iyuv_to_rgb(tensor_planes, dst[0]); break; default: ARM_COMPUTE_ERROR("Not Supported"); @@ -185,7 +185,7 @@ std::vector> color_convert(const TensorShape &shape, const std:: { case Format::RGB888: case Format::RGBA8888: - colorconvert_helper::detail::colorconvert_nv12_to_rgb(shape, src_format, tensor_planes, dst[0]); + colorconvert_helper::detail::colorconvert_nv12_to_rgb(src_format, tensor_planes, dst[0]); break; case Format::IYUV: colorconvert_helper::detail::colorconvert_nv_to_iyuv(tensor_planes, src_format, dst); diff --git a/tests/validation/reference/ColorConvertHelper.h b/tests/validation/reference/ColorConvertHelper.h index abd1f5d1fe..8dd961c0f4 100644 --- a/tests/validation/reference/ColorConvertHelper.h +++ b/tests/validation/reference/ColorConvertHelper.h @@ -306,7 +306,7 @@ inline void colorconvert_yuyv_to_rgb(const SimpleTensor src, const Format for } template -inline void colorconvert_iyuv_to_rgb(const TensorShape &shape, const std::vector> &tensor_planes, SimpleTensor &dst) +inline void colorconvert_iyuv_to_rgb(const std::vector> &tensor_planes, SimpleTensor &dst) { SimpleTensor yvec(TensorShape{ tensor_planes[0].shape().x() / 2, tensor_planes[0].shape().y() }, Format::U8); SimpleTensor uvec(TensorShape{ tensor_planes[0].shape().x() / 2, tensor_planes[0].shape().y() }, Format::U8); @@ -361,7 +361,7 @@ inline void colorconvert_iyuv_to_rgb(const TensorShape &shape, const std::vector } template -inline void colorconvert_nv12_to_rgb(const TensorShape &shape, const Format format, const std::vector> &tensor_planes, SimpleTensor &dst) +inline void colorconvert_nv12_to_rgb(const Format format, const std::vector> &tensor_planes, SimpleTensor &dst) { SimpleTensor yvec(TensorShape{ tensor_planes[0].shape().x() / 2, tensor_planes[0].shape().y() }, Format::U8); SimpleTensor uvec(TensorShape{ tensor_planes[0].shape().x() / 2, tensor_planes[0].shape().y() }, Format::U8); diff --git a/tests/validation/reference/ROIAlignLayer.cpp b/tests/validation/reference/ROIAlignLayer.cpp index 415b483bc0..c32dce72e1 100644 --- a/tests/validation/reference/ROIAlignLayer.cpp +++ b/tests/validation/reference/ROIAlignLayer.cpp @@ -132,6 +132,8 @@ SimpleTensor convert_rois_from_asymmetric(SimpleTensor rois) template SimpleTensor roi_align_layer(const SimpleTensor &src, const SimpleTensor &rois, const ROIPoolingLayerInfo &pool_info, const QuantizationInfo &output_qinfo) { + ARM_COMPUTE_UNUSED(output_qinfo); + const size_t values_per_roi = rois.shape()[0]; const size_t num_rois = rois.shape()[1]; DataType dst_data_type = src.data_type(); -- cgit v1.2.1