aboutsummaryrefslogtreecommitdiff
path: root/tests/validation/reference/HOGDescriptor.cpp
diff options
context:
space:
mode:
authorMichalis Spyrou <michalis.spyrou@arm.com>2019-10-16 17:41:33 +0100
committerMichalis Spyrou <michalis.spyrou@arm.com>2019-10-17 15:36:33 +0000
commitfae513c5585b9ba09c3aa8bfd4f7119208b7b5f9 (patch)
tree4c87da93a765e880d22a53904543e2e91660f7a5 /tests/validation/reference/HOGDescriptor.cpp
parentebaddb600795911dc4e4c446d4f612caa009aaa1 (diff)
downloadComputeLibrary-fae513c5585b9ba09c3aa8bfd4f7119208b7b5f9.tar.gz
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 <michalis.spyrou@arm.com> Reviewed-on: https://review.mlplatform.org/c/2109 Tested-by: Arm Jenkins <bsgcomp@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com>
Diffstat (limited to 'tests/validation/reference/HOGDescriptor.cpp')
-rw-r--r--tests/validation/reference/HOGDescriptor.cpp8
1 files changed, 4 insertions, 4 deletions
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<T> &mag, const SimpleTensor<T> &
}
template <typename T>
-void hog_block_normalization_compute(SimpleTensor<T> &block, SimpleTensor<T> &desc, const HOGInfo &hog_info, size_t block_idx)
+void hog_block_normalization_compute(SimpleTensor<T> &block, SimpleTensor<T> &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<T> &desc, const SimpleTensor<T> &hog_s
// Tensor representing single block
SimpleTensor<T> 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)