From: Emil Velikov Date: Thu, 29 May 2025 14:31:36 +0000 (+0100) Subject: testsuite/test-hash: silence unused parameter warning X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a7ce23ffbb997422ea710d3cb0d2cdeced6cdb06;p=thirdparty%2Fkmod.git 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 --- 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++; }