From 5e61409cae7999ec4372f7408ad2f7c078cd188d Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 24 Jul 2014 22:05:56 +0200 Subject: [PATCH] build: Remove duplicate -Wno-unused-function. We compile the .c files generated by gengetopt with this option to silence a compiler warning. The option is first added to CPPFLAGS and then specified again in the rule for the *.cmdline.o target. This gets rid of the second instance. --- Makefile.real | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.real b/Makefile.real index 506c588d..7b7ea419 100644 --- a/Makefile.real +++ b/Makefile.real @@ -210,7 +210,7 @@ $(object_dir)/%.o: %.c | $(object_dir) $(object_dir)/%.cmdline.o: $(cmdline_dir)/%.cmdline.c $(cmdline_dir)/%.cmdline.h | $(object_dir) @[ -z "$(Q)" ] || echo 'CC $<' - $(Q) $(CC) -c $(CPPFLAGS) -Wno-unused-function -o $@ $< + $(Q) $(CC) -c -o $@ $(CPPFLAGS) $< $(dep_dir)/%.cmdline.d: $(cmdline_dir)/%.cmdline.c error2.h | $(dep_dir) @[ -z "$(Q)" ] || echo 'DEP $<' -- 2.39.2