]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
testsuite/test-hash: silence unused parameter warning
authorEmil Velikov <emil.l.velikov@gmail.com>
Thu, 29 May 2025 14:31:36 +0000 (15:31 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Wed, 11 Jun 2025 12:54:40 +0000 (07:54 -0500)
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 <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/361
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
testsuite/test-hash.c

index 07d2a4a995636884825a7c86d051a8ca78e6ddfd..e3d6d85efd1c630f9753d95298856a38b4034f79 100644 (file)
@@ -17,7 +17,7 @@
 
 static int freecount;
 
-static void countfreecalls(void *v)
+static void countfreecalls(_maybe_unused_ void *v)
 {
        freecount++;
 }