From c693947b05030cf7a9ef565d8d57b3ea6faf1b13 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Fri, 7 May 2021 17:56:31 +0100 Subject: Suppress unused variable warning that is present on empty backend builds When neither OpenCL nor accelerated CPU backends are built then unused variable warnings are signalled. Signed-off-by: Georgios Pinitas Change-Id: I548a440849178c8430f74ab4f75736d081a50903 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5604 Tested-by: Arm Jenkins Reviewed-by: Michele Di Giorgio Comments-Addressed: Arm Jenkins --- src/c/AclContext.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/c/AclContext.cpp b/src/c/AclContext.cpp index bff70f3baf..c62e627edc 100644 --- a/src/c/AclContext.cpp +++ b/src/c/AclContext.cpp @@ -56,6 +56,8 @@ bool are_context_options_valid(const AclContextOptions *options) arm_compute::IContext *create_context(AclTarget target, const AclContextOptions *options) { + ARM_COMPUTE_UNUSED(options); + switch(target) { #ifdef ARM_COMPUTE_CPU_ENABLED -- cgit v1.2.1