diff options
author | Michalis Spyrou <michalis.spyrou@arm.com> | 2019-10-02 17:22:11 +0100 |
---|---|---|
committer | Michalis Spyrou <michalis.spyrou@arm.com> | 2019-10-08 09:08:50 +0000 |
commit | 6bff195a51915fd88c1aa1904cf269dbd1a04f50 (patch) | |
tree | 645fc3bb8f6bbe05aeb16385a52a696973da0b73 /arm_compute/core/utils | |
parent | 6665f82b38ce904aa588230546d66e65d38f20d6 (diff) | |
download | ComputeLibrary-6bff195a51915fd88c1aa1904cf269dbd1a04f50.tar.gz |
COMPMID-2486: Remove disabled compiler warnings
Removed -Wno-unused-parameter and -Wno-deprecated-declarations
compilation flags.
Plus, 3RDPARTY_UPDATE.
Change-Id: I43098c7af527d5651aad3c597b508a56f8813dda
Signed-off-by: Michalis Spyrou <michalis.spyrou@arm.com>
Reviewed-on: https://review.mlplatform.org/c/2041
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'arm_compute/core/utils')
-rw-r--r-- | arm_compute/core/utils/logging/LogMsgDecorators.h | 3 | ||||
-rw-r--r-- | arm_compute/core/utils/misc/ShapeCalculator.h | 2 | ||||
-rw-r--r-- | arm_compute/core/utils/misc/Utility.h | 3 |
3 files changed, 7 insertions, 1 deletions
diff --git a/arm_compute/core/utils/logging/LogMsgDecorators.h b/arm_compute/core/utils/logging/LogMsgDecorators.h index 03a2d41f12..7c5b58b633 100644 --- a/arm_compute/core/utils/logging/LogMsgDecorators.h +++ b/arm_compute/core/utils/logging/LogMsgDecorators.h @@ -24,6 +24,7 @@ #ifndef __ARM_COMPUTE_LOGGING_LOG_MSG_DECORATORS_H__ #define __ARM_COMPUTE_LOGGING_LOG_MSG_DECORATORS_H__ +#include "arm_compute/core/Error.h" #include "arm_compute/core/utils/logging/Helpers.h" #include "arm_compute/core/utils/logging/Types.h" @@ -120,6 +121,8 @@ public: { #ifndef NO_MULTI_THREADING log_msg.raw_ += angle_wrap_value(std::this_thread::get_id()); +#else /* NO_MULTI_THREADING */ + ARM_COMPUTE_UNUSED(log_msg); #endif /* NO_MULTI_THREADING */ } }; diff --git a/arm_compute/core/utils/misc/ShapeCalculator.h b/arm_compute/core/utils/misc/ShapeCalculator.h index 65a2a1edf4..c4c360842f 100644 --- a/arm_compute/core/utils/misc/ShapeCalculator.h +++ b/arm_compute/core/utils/misc/ShapeCalculator.h @@ -859,6 +859,7 @@ inline TensorShape compute_mm_shape(const ITensorInfo &input0, const ITensorInfo */ inline TensorShape compute_mm_shape(const ITensorInfo &input0, const ITensorInfo &input1, const GEMMReshapeInfo &gemm_info) { + ARM_COMPUTE_UNUSED(input1); ARM_COMPUTE_ERROR_ON_MSG(input0.num_dimensions() > 4, "The number of dimensions for the matrix A must be <= 4"); const bool reinterpret_input_as_3d = gemm_info.reinterpret_input_as_3d(); @@ -896,6 +897,7 @@ inline TensorShape compute_mm_shape(const ITensorInfo &input0, const ITensorInfo */ inline TensorShape compute_mm_shape(const ITensorInfo &input0, const ITensorInfo &input1, const GEMMKernelInfo &gemm_info) { + ARM_COMPUTE_UNUSED(input1); ARM_COMPUTE_ERROR_ON_MSG(input0.num_dimensions() > 4, "The number of dimensions for the matrix A must be <= 4"); const bool reinterpret_input_as_3d = gemm_info.reinterpret_input_as_3d; diff --git a/arm_compute/core/utils/misc/Utility.h b/arm_compute/core/utils/misc/Utility.h index 2325644e72..d27a3cf75e 100644 --- a/arm_compute/core/utils/misc/Utility.h +++ b/arm_compute/core/utils/misc/Utility.h @@ -65,7 +65,7 @@ struct generate_array<T, 0, val, vals...> static constexpr std::array<T, sizeof...(vals)> value{ vals... }; }; -template <typename T, T val, T... vals> +template <typename T, T val, T... vals> constexpr std::array<T, sizeof...(vals)> generate_array<T, 0, val, vals...>::value; /** @endcond */ @@ -83,6 +83,7 @@ T make_array(Iterator first, index_sequence<S...>) template <std::size_t N, typename Iterator> std::array<typename std::iterator_traits<Iterator>::value_type, N> make_array(Iterator first, Iterator last) { + ARM_COMPUTE_UNUSED(last); return detail::make_array(first, index_sequence_t<N> {}); } |