From 0082c366fc2db46ee2cb0e171c588dfc8f26ce73 Mon Sep 17 00:00:00 2001 From: Matthew Bentham Date: Mon, 3 Feb 2020 12:05:18 +0000 Subject: Silence warnings related to "control reaches end of non-void function" Move ERROR macros out of default branches in switch statements, to the end of the function. Signed-off-by: Matthew Bentham Change-Id: I66d47eb0f2fc0a3ab4bf2dd4a01d8b0907786c98 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/2709 Tested-by: Arm Jenkins Reviewed-by: Pablo Marquez Reviewed-by: Sang-Hoon Park Comments-Addressed: Arm Jenkins --- arm_compute/core/Helpers.inl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'arm_compute/core/Helpers.inl') diff --git a/arm_compute/core/Helpers.inl b/arm_compute/core/Helpers.inl index 29f31c12c8..233d46bb86 100644 --- a/arm_compute/core/Helpers.inl +++ b/arm_compute/core/Helpers.inl @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2019 ARM Limited. + * Copyright (c) 2016-2020 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -348,9 +348,9 @@ inline size_t get_data_layout_dimension_index(const DataLayout data_layout, cons return 3; break; default: - ARM_COMPUTE_ERROR("Data layout index not supported!"); break; } + ARM_COMPUTE_ERROR("Data layout index not supported!"); } inline DataLayoutDimension get_index_data_layout_dimension(const DataLayout data_layout, const size_t index) -- cgit v1.2.1