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 /src/core | |
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 'src/core')
-rw-r--r-- | src/core/NEON/kernels/NEScaleKernel.cpp | 2 | ||||
-rw-r--r-- | src/core/utils/helpers/tensor_transform.cpp | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/src/core/NEON/kernels/NEScaleKernel.cpp b/src/core/NEON/kernels/NEScaleKernel.cpp index a2a44fca18..80da54f50a 100644 --- a/src/core/NEON/kernels/NEScaleKernel.cpp +++ b/src/core/NEON/kernels/NEScaleKernel.cpp @@ -227,7 +227,7 @@ inline void scale_bilinear_nhwc_core(const ITensor *input, const ITensor *offset border_value = static_cast<T>(constant_border_value.get<ConstType>()); } - auto is_valid = [](int x, int low_x, int high_x, int y, int low_y, int high_y) + auto is_valid = [](int64_t x, int64_t low_x, int64_t high_x, int64_t y, int64_t low_y, int64_t high_y) { return !(x < low_x || x > high_x || y < low_y || y > high_y); }; diff --git a/src/core/utils/helpers/tensor_transform.cpp b/src/core/utils/helpers/tensor_transform.cpp index f6a54a59ee..cd874b24b3 100644 --- a/src/core/utils/helpers/tensor_transform.cpp +++ b/src/core/utils/helpers/tensor_transform.cpp @@ -88,7 +88,14 @@ int calculate_end_on_index(TensorShape input_shape, int index, int start_on_inde // Shrink dimension if(shrink_axis) { - stop = start_on_index + 1; + if(start_on_index == std::numeric_limits<int>::max()) + { + stop = start_on_index; + } + else + { + stop = start_on_index + 1; + } } // Reset in case of begin mask present |