multipathd: use -Wno-unused-parameter for cli_handlers.c
authorMartin Wilck <mwilck@suse.com>
Sat, 12 Oct 2019 21:28:24 +0000 (21:28 +0000)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Mon, 2 Mar 2020 08:17:53 +0000 (09:17 +0100)
This file contains many handlers that don't use all their arguments.

Signed-off-by: Martin Wilck <mwilck@suse.com>
multipathd/Makefile

index d1a9863..8d90117 100644 (file)
@@ -36,6 +36,9 @@ $(EXEC): $(OBJS) $(multipathdir)/libmultipath.so $(mpathcmddir)/libmpathcmd.so
        $(CC) $(CFLAGS) $(OBJS) $(LDFLAGS) -o $(EXEC) $(LIBDEPS)
        $(GZIP) $(EXEC).8 > $(EXEC).8.gz
 
+cli_handlers.o:        cli_handlers.c
+       $(CC) $(CFLAGS) -Wno-unused-parameter -c -o $@ $<
+
 install:
        $(INSTALL_PROGRAM) -d $(DESTDIR)$(bindir)
        $(INSTALL_PROGRAM) -m 755 $(EXEC) $(DESTDIR)$(bindir)