diff options
author | Michalis Spyrou <michalis.spyrou@arm.com> | 2019-10-16 17:41:33 +0100 |
---|---|---|
committer | Michalis Spyrou <michalis.spyrou@arm.com> | 2019-10-17 15:36:33 +0000 |
commit | fae513c5585b9ba09c3aa8bfd4f7119208b7b5f9 (patch) | |
tree | 4c87da93a765e880d22a53904543e2e91660f7a5 /tests/validation/reference/ChannelCombine.cpp | |
parent | ebaddb600795911dc4e4c446d4f612caa009aaa1 (diff) | |
download | ComputeLibrary-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/ChannelCombine.cpp')
-rw-r--r-- | tests/validation/reference/ChannelCombine.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/validation/reference/ChannelCombine.cpp b/tests/validation/reference/ChannelCombine.cpp index b76dcaca8c..a6c0557b79 100644 --- a/tests/validation/reference/ChannelCombine.cpp +++ b/tests/validation/reference/ChannelCombine.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2018 ARM Limited. + * Copyright (c) 2017-2019 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -94,9 +94,10 @@ std::vector<SimpleTensor<T>> channel_combine(const TensorShape &shape, const std for(unsigned int plane_idx = 0; plane_idx < dst.size(); ++plane_idx) { - SimpleTensor<T> &dst_tensor = dst[plane_idx]; + SimpleTensor<T> &dst_tensor = dst[plane_idx]; + const uint32_t num_elements = dst_tensor.num_elements(); - for(int element_idx = 0; element_idx < dst_tensor.num_elements(); ++element_idx) + for(uint32_t element_idx = 0; element_idx < num_elements; ++element_idx) { Coordinates coord = index2coord(dst_tensor.shape(), element_idx); |