aboutsummaryrefslogtreecommitdiff
path: root/tests/validation/reference/Scale.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/Scale.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/Scale.cpp')
-rw-r--r--tests/validation/reference/Scale.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/validation/reference/Scale.cpp b/tests/validation/reference/Scale.cpp
index 4405e79263..7962459ce8 100644
--- a/tests/validation/reference/Scale.cpp
+++ b/tests/validation/reference/Scale.cpp
@@ -63,7 +63,8 @@ SimpleTensor<T> scale_core(const SimpleTensor<T> &in, float scale_x, float scale
policy = InterpolationPolicy::NEAREST_NEIGHBOR;
}
- for(int element_idx = 0, count = 0; element_idx < out.num_elements(); ++element_idx, ++count)
+ const uint32_t num_elements = out.num_elements();
+ for(uint32_t element_idx = 0, count = 0; element_idx < num_elements; ++element_idx, ++count)
{
Coordinates id = index2coord(out.shape(), element_idx);
int idx = id.x();