aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/core/Size2D.h
diff options
context:
space:
mode:
authorPablo Marquez Tello <pablo.tello@arm.com>2021-09-01 10:18:57 +0100
committerPablo Marquez Tello <pablo.tello@arm.com>2021-09-01 12:32:34 +0000
commitb1db6e16b7041af2212884ed8c6b3300a2a6a976 (patch)
treec5e7d06e55b618936481dc35ab1bdeb7b7b83afa /arm_compute/core/Size2D.h
parentc89998fa843de85d6f107e4b346f3490a188367a (diff)
downloadComputeLibrary-b1db6e16b7041af2212884ed8c6b3300a2a6a976.tar.gz
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 <pablo.tello@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/6182 Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'arm_compute/core/Size2D.h')
-rw-r--r--arm_compute/core/Size2D.h7
1 files 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)