From 9d8f4ed0a8513651b17467796117ba809e8671c8 Mon Sep 17 00:00:00 2001 From: Gunes Bayir Date: Tue, 6 Feb 2024 15:07:25 +0000 Subject: 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 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/11082 Benchmark: Arm Jenkins Tested-by: Arm Jenkins Reviewed-by: Anitha Raj Comments-Addressed: Arm Jenkins --- compute_kernel_writer/src/cl/CLKernelWriter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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."); -- cgit v1.2.1