diff options
Diffstat (limited to 'arm_compute/core/Error.h')
-rw-r--r-- | arm_compute/core/Error.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arm_compute/core/Error.h b/arm_compute/core/Error.h index c9a0d85f0c..0854f2c527 100644 --- a/arm_compute/core/Error.h +++ b/arm_compute/core/Error.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2019, 2021 Arm Limited. + * Copyright (c) 2016-2019, 2021, 2023 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -204,9 +204,10 @@ Status create_error_msg(ErrorCode error_code, const char *func, const char *file #define ARM_COMPUTE_RETURN_ON_ERROR(status) \ do \ { \ - if(!bool(status)) \ + const auto s = status; \ + if(!bool(s)) \ { \ - return status; \ + return s; \ } \ } while(false) |