aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunes Bayir <gunes.bayir@arm.com>2024-02-06 15:07:25 +0000
committerGunes Bayir <gunes.bayir@arm.com>2024-02-06 16:49:12 +0000
commit9d8f4ed0a8513651b17467796117ba809e8671c8 (patch)
treef70f0915348073ed5845c6273cd2b982d9528e67
parent9e987b1b8b7d2d4759712397cfa66d7924fc8061 (diff)
downloadComputeLibrary-9d8f4ed0a8513651b17467796117ba809e8671c8.tar.gz
Fix compilation issue in CKW due to unused variable
Partially Resolves: COMPMID-6708, COMPMID-6743, COMPMID-6530 Change-Id: Ia229f96e02dafa35ea96aa7d50c985c74a475029 Signed-off-by: Gunes Bayir <gunes.bayir@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/11082 Benchmark: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Anitha Raj <Anitha.Raj@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
-rw-r--r--compute_kernel_writer/src/cl/CLKernelWriter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/compute_kernel_writer/src/cl/CLKernelWriter.cpp b/compute_kernel_writer/src/cl/CLKernelWriter.cpp
index 8b4876b6a7..91512bde23 100644
--- a/compute_kernel_writer/src/cl/CLKernelWriter.cpp
+++ b/compute_kernel_writer/src/cl/CLKernelWriter.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2023 Arm Limited.
+ * Copyright (c) 2023-2024 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -334,6 +334,7 @@ void CLKernelWriter::op_ternary(
const std::string second_prefix = broadcast_second_x ? "(" + data_type_str + ")" : "";
const std::string third_prefix = broadcast_third_x ? "(" + data_type_str + ")" : "";
+ CKW_UNUSED(op_is_func);
CKW_ASSERT_MSG(op_is_func, "The only supported ternary operator is function.");
CKW_ASSERT_MSG(second_view.data_type() == dst_view.data_type(), "2nd source and destination type must match.");
CKW_ASSERT_MSG(third_view.data_type() == dst_view.data_type(), "3rd source and destination type must match.");