From fae513c5585b9ba09c3aa8bfd4f7119208b7b5f9 Mon Sep 17 00:00:00 2001 From: Michalis Spyrou Date: Wed, 16 Oct 2019 17:41:33 +0100 Subject: COMPMID-2486: Remove/add disabled compiler warnings Removed the following flags: -Wno-vla -Wno-strict-overflow Added: -Wformat-security Change-Id: I49eb3d724e14db796e543164295674617c37cb65 Signed-off-by: Michalis Spyrou Reviewed-on: https://review.mlplatform.org/c/2109 Tested-by: Arm Jenkins Comments-Addressed: Arm Jenkins Reviewed-by: Michele Di Giorgio --- tests/validation/reference/Remap.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'tests/validation/reference/Remap.cpp') diff --git a/tests/validation/reference/Remap.cpp b/tests/validation/reference/Remap.cpp index f862c13700..a7352eb3a3 100644 --- a/tests/validation/reference/Remap.cpp +++ b/tests/validation/reference/Remap.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2018 ARM Limited. + * Copyright (c) 2017-2019 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -44,9 +44,10 @@ SimpleTensor remap(const SimpleTensor &in, SimpleTensor &map_x, Sim ARM_COMPUTE_ERROR_ON_MSG(border_mode == BorderMode::REPLICATE, "BorderMode not supported"); SimpleTensor out(in.shape(), in.data_type()); ARM_COMPUTE_ERROR_ON(out.num_elements() != map_x.num_elements()); - const int width = in.shape().x(); - const int height = in.shape().y(); - for(int idx = 0; idx < out.num_elements(); idx++) + const int width = in.shape().x(); + const int height = in.shape().y(); + const uint32_t num_elements = out.num_elements(); + for(uint32_t idx = 0; idx < num_elements; idx++) { const Coordinates id_out = index2coord(out.shape(), idx); valid_mask[idx] = 1; -- cgit v1.2.1