]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
tools/kmod: silence unused parameter warnings
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)
kmod_help() does not use neither argc nor argv although due to the
dispatch mechanism they are part of the function signature.

Not much we can do here - silence the compiler warnings.

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>
tools/kmod.c

index 75be2315bbc5b391b827cfb2debf59d1ded699c3..dbee69e1351c3f2efec6d40bb015b5799df0e858 100644 (file)
@@ -42,7 +42,7 @@ static const struct kmod_cmd *const kmod_compat_cmds[] = {
        // clang-format on
 };
 
-static int kmod_help(int argc, char *argv[])
+static int kmod_help(_maybe_unused_ int argc, _maybe_unused_ char *argv[])
 {
        size_t i;