From 2f5b9f1e2caafbf141886b39635ae64043613735 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Thu, 29 May 2025 15:31:36 +0100 Subject: [PATCH] tools/static-nodes: silence unused parameter warning The function signature for our printers is uniform, even though in one of the instances a parameter is unused. There is not much we can do here, just silence the compiler warning. Signed-off-by: Emil Velikov Link: https://github.com/kmod-project/kmod/pull/361 Signed-off-by: Lucas De Marchi --- tools/static-nodes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/static-nodes.c b/tools/static-nodes.c index 2957b466..c2ba1f80 100644 --- a/tools/static-nodes.c +++ b/tools/static-nodes.c @@ -71,8 +71,8 @@ static const struct static_nodes_format static_nodes_format_human = { .description = "(default) a human readable format. Do not parse.", }; -static int write_tmpfiles(FILE *out, char modname[], char devname[], char type, - unsigned int maj, unsigned int min) +static int write_tmpfiles(FILE *out, _maybe_unused_ char modname[], char devname[], + char type, unsigned int maj, unsigned int min) { const char *dir; int ret; -- 2.47.3