aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2021-05-07 17:56:31 +0100
committerSheri Zhang <sheri.zhang@arm.com>2021-05-14 10:21:00 +0100
commit4e38aff09798edf394e666900ad395d00db361a5 (patch)
treeb31e84313eddf6e17c3d0cbfd5af68cba56ad029
parent83079d24e742891754b36a1281954e6bac6ce6fd (diff)
downloadComputeLibrary-4e38aff09798edf394e666900ad395d00db361a5.tar.gz
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 <georgios.pinitas@arm.com> Change-Id: I548a440849178c8430f74ab4f75736d081a50903 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5604 Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
-rw-r--r--src/c/AclContext.cpp2
1 files changed, 2 insertions, 0 deletions
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