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/HOGDescriptor.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/validation/reference/HOGDescriptor.cpp') diff --git a/tests/validation/reference/HOGDescriptor.cpp b/tests/validation/reference/HOGDescriptor.cpp index ed22695793..f0f573a471 100644 --- a/tests/validation/reference/HOGDescriptor.cpp +++ b/tests/validation/reference/HOGDescriptor.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2018 ARM Limited. + * Copyright (c) 2017-2019 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -69,7 +69,7 @@ void hog_orientation_compute(const SimpleTensor &mag, const SimpleTensor & } template -void hog_block_normalization_compute(SimpleTensor &block, SimpleTensor &desc, const HOGInfo &hog_info, size_t block_idx) +void hog_block_normalization_compute(SimpleTensor &block, SimpleTensor &desc, const HOGInfo &hog_info, uint32_t block_idx) { const int num_bins_per_block = desc.num_channels(); const HOGNormType norm_type = hog_info.normalization_type(); @@ -186,8 +186,8 @@ void hog_block_normalization(SimpleTensor &desc, const SimpleTensor &hog_s // Tensor representing single block SimpleTensor block(TensorShape{ 1u, 1u }, DataType::F32, cells_per_block.area() * num_bins); - int block_idx = 0; - int block_y_offset = 0; + uint32_t block_idx = 0; + int block_y_offset = 0; // Traverse shape for(auto sy = block_size.height; sy <= shape_height; sy += block_stride.height) -- cgit v1.2.1