From d8734b55d89f05901ba9a75349761a9c955d9243 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Fri, 22 Dec 2017 15:27:52 +0000 Subject: COMPMID-793 : Add graph intermediate representation Change-Id: Ic1685de4e19e0ac79669ef2da64e1dc96c7ea0bf Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/115248 Tested-by: Jenkins Reviewed-by: Anthony Barbier --- arm_compute/core/Error.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'arm_compute/core/Error.h') diff --git a/arm_compute/core/Error.h b/arm_compute/core/Error.h index 56c7ccdd93..f178936ede 100644 --- a/arm_compute/core/Error.h +++ b/arm_compute/core/Error.h @@ -29,6 +29,16 @@ namespace arm_compute { +/** Ignores unused arguments + * + * @tparam T Argument types + */ +template +inline void ignore_unused(T &&...) +{ +} + +/** Available error codes */ enum class ErrorCode { OK, /**< No error */ @@ -142,9 +152,9 @@ Status create_error(ErrorCode error_code, const char *function, const char *file * This is useful if for example a variable is only used * in debug builds and generates a warning in release builds. * - * @param[in] var Variable which is unused. + * @param[in] ... Variables which are unused. */ -#define ARM_COMPUTE_UNUSED(var) (void)(var) +#define ARM_COMPUTE_UNUSED(...) ignore_unused(__VA_ARGS__) // NOLINT /** Creates an error with a given message * -- cgit v1.2.1