From 98acac3fc2cbe2cc5cae6fa3d64d959b82dacda7 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 28 May 2024 09:52:27 +0200 Subject: [PATCH] fix unused warning --- .../hitag2crack/crack5opencl/ht2crack5opencl.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/tools/hitag2crack/crack5opencl/ht2crack5opencl.c b/tools/hitag2crack/crack5opencl/ht2crack5opencl.c index 21829adf5..dae4e20f0 100644 --- a/tools/hitag2crack/crack5opencl/ht2crack5opencl.c +++ b/tools/hitag2crack/crack5opencl/ht2crack5opencl.c @@ -705,21 +705,28 @@ int main(int argc, char **argv) { // show buidlog in case of error // todo: only for device models unsigned int build_errors = 0; - unsigned int build_logs = 0; + // unsigned int build_logs = 0; cl_command_queue_properties queue_properties = 0; - if (opencl_profiling) queue_properties = CL_QUEUE_PROFILING_ENABLE; + if (opencl_profiling) { + queue_properties = CL_QUEUE_PROFILING_ENABLE; + } // setup, phase 1 z = 0; // dolphin for (w = 0; w < ocl_platform_cnt; w++) { - if (!cd_ctx[w].selected) continue; + if (!cd_ctx[w].selected) { + continue; + } for (q = 0; q < cd_ctx[w].device_cnt; q++) { - if (!cd_ctx[w].device[q].selected) continue; + + if (!cd_ctx[w].device[q].selected) { + continue; + } ctx.device_ids[z] = cd_ctx[w].device[q].device_id; @@ -860,7 +867,7 @@ int main(int argc, char **argv) { free(buffer); - build_logs++; + // build_logs++; #if DEBUGME == 0 continue; // todo: evaluate this, one or more can be broken, so continue #endif