From a7ce23ffbb997422ea710d3cb0d2cdeced6cdb06 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Thu, 29 May 2025 15:31:36 +0100 Subject: [PATCH] testsuite/test-hash: silence unused parameter warning The implementation of our "hash_free" function varies in that the hash data itself is not freed. Thus the function argument is unused, leading to annoying compiler warning. Since there is nothing to be done here, just silence it. Signed-off-by: Emil Velikov Link: https://github.com/kmod-project/kmod/pull/361 Signed-off-by: Lucas De Marchi --- testsuite/test-hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuite/test-hash.c b/testsuite/test-hash.c index 07d2a4a9..e3d6d85e 100644 --- a/testsuite/test-hash.c +++ b/testsuite/test-hash.c @@ -17,7 +17,7 @@ static int freecount; -static void countfreecalls(void *v) +static void countfreecalls(_maybe_unused_ void *v) { freecount++; } -- 2.47.2