From b1db6e16b7041af2212884ed8c6b3300a2a6a976 Mon Sep 17 00:00:00 2001 From: Pablo Marquez Tello Date: Wed, 1 Sep 2021 10:18:57 +0100 Subject: Fixed compiler error * Missing noexcept causes compilation to fail on GCC 9.3.0 * Resolves MLCE-595 Change-Id: I960608dbeaacac3699465da4b75740237d65559c Signed-off-by: Pablo Marquez Tello Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/6182 Reviewed-by: Michele Di Giorgio Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins --- arm_compute/core/Size2D.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arm_compute/core/Size2D.h b/arm_compute/core/Size2D.h index bcd89cb310..f3e9bea4c7 100644 --- a/arm_compute/core/Size2D.h +++ b/arm_compute/core/Size2D.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2020 Arm Limited. + * Copyright (c) 2016-2021 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -41,8 +41,9 @@ public: * @param[in] w Width of the image or rectangle * @param[in] h Height of the image or rectangle */ - Size2D(size_t w, size_t h) - : width(w), height(h) + Size2D(size_t w, size_t h) noexcept + : width(w), + height(h) { } /** The area of the image or rectangle calculated as (width * height) -- cgit v1.2.1