From: Emil Velikov Date: Thu, 29 May 2025 14:31:36 +0000 (+0100) Subject: tools/kmod: silence unused parameter warnings X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=affec6677ab46b986bac8177791ec0ca5c505128;p=thirdparty%2Fkmod.git tools/kmod: silence unused parameter warnings 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 Link: https://github.com/kmod-project/kmod/pull/361 Signed-off-by: Lucas De Marchi --- diff --git a/tools/kmod.c b/tools/kmod.c index 75be2315..dbee69e1 100644 --- a/tools/kmod.c +++ b/tools/kmod.c @@ -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;