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>
diff --git a/compute_kernel_writer/src/cl/CLKernelWriter.cpp b/compute_kernel_writer/src/cl/CLKernelWriter.cpp
index 8b4876b..91512bd 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 @@
     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.");