From 7509db454facb2f868e04287dcda39e0f07423b1 Mon Sep 17 00:00:00 2001 From: Michael Platings Date: Thu, 9 May 2024 14:30:07 +0000 Subject: [PATCH] Work around warning-as-error on some compilers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On GCC 9.4 fix this error: error: parameter ‘callback’ set but not used [-Werror=unused-but-set-parameter] --- kleidicv/include/kleidicv/utils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kleidicv/include/kleidicv/utils.h b/kleidicv/include/kleidicv/utils.h index 825f3607d..48d93d4ce 100644 --- a/kleidicv/include/kleidicv/utils.h +++ b/kleidicv/include/kleidicv/utils.h @@ -92,7 +92,7 @@ class LoopUnroll final { // Unrolls the loop twice, if enabled. template - LoopUnroll &unroll_twice_if(CallbackType callback) + LoopUnroll &unroll_twice_if([[maybe_unused]] CallbackType callback) KLEIDICV_STREAMING_COMPATIBLE { if constexpr (Enable) { return unroll_twice(callback); @@ -109,7 +109,7 @@ class LoopUnroll final { // Unrolls the loop once, if enabled. template - LoopUnroll &unroll_once_if(CallbackType callback) + LoopUnroll &unroll_once_if([[maybe_unused]] CallbackType callback) KLEIDICV_STREAMING_COMPATIBLE { if constexpr (Enable) { return unroll_once(callback); -- GitLab