From: Andre Noll Date: Thu, 24 Jul 2014 20:05:56 +0000 (+0200) Subject: build: Remove duplicate -Wno-unused-function. X-Git-Tag: v0.5.4~46^2~20 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=5e61409cae7999ec4372f7408ad2f7c078cd188d;hp=d67061d23fa2757b7d06328bfc9f4e5c3c733f40 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. --- 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 $<'