From cedb78f24d68a5f4ad3483d21c14798653705f2f Mon Sep 17 00:00:00 2001 From: Kohei Takahashi Date: Thu, 23 Aug 2018 10:23:52 +0900 Subject: COMPMID-1536: Github PR: Removed redundant const qualifier on cast GCC (>=8) yields warning w/ -Wignored-qualifers (enabled by -Wextra) on such usage. Change-Id: Ib3284b60cec0ec4faf8c6e6c1e2980cbf5731973 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/145384 Tested-by: Jenkins Reviewed-by: Georgios Pinitas --- src/core/NEON/kernels/NEMinMaxLayerKernel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core/NEON/kernels/NEMinMaxLayerKernel.cpp') diff --git a/src/core/NEON/kernels/NEMinMaxLayerKernel.cpp b/src/core/NEON/kernels/NEMinMaxLayerKernel.cpp index d93dc09ff9..5d1b4b3aa4 100644 --- a/src/core/NEON/kernels/NEMinMaxLayerKernel.cpp +++ b/src/core/NEON/kernels/NEMinMaxLayerKernel.cpp @@ -147,7 +147,7 @@ void NEMinMaxLayerKernel::run(const Window &window, const ThreadInfo &info) execute_window_loop(window_input, [&](const Coordinates & id) { int x = x_start; - const auto in_ptr = reinterpret_cast(input.ptr() + id_batch[1] * _input->info()->strides_in_bytes()[3]); + const auto in_ptr = reinterpret_cast(input.ptr() + id_batch[1] * _input->info()->strides_in_bytes()[3]); // Vector loop for(; x <= x_end - 8; x += 8) @@ -181,7 +181,7 @@ void NEMinMaxLayerKernel::run(const Window &window, const ThreadInfo &info) const float min_i = std::min(vget_lane_f32(carry_min, 0), carry_min_scalar); const float max_i = std::max(vget_lane_f32(carry_max, 0), carry_max_scalar); - auto out_ptr = reinterpret_cast(output.ptr()); + auto out_ptr = reinterpret_cast(output.ptr()); // Perform reduction of local min/max values update_min_max(out_ptr, min_i, max_i); @@ -205,7 +205,7 @@ void NEMinMaxLayerKernel::reset() execute_window_loop(window_output, [&](const Coordinates & id) { - vst1_f32(reinterpret_cast(output.ptr()), reset_values); + vst1_f32(reinterpret_cast(output.ptr()), reset_values); }, output); } -- cgit v1.2.1