]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
build: Remove duplicate -Wno-unused-function.
authorAndre Noll <maan@systemlinux.org>
Thu, 24 Jul 2014 20:05:56 +0000 (22:05 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 26 Oct 2014 12:15:53 +0000 (13:15 +0100)
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

index 506c588d066fd1879caeb01c7a16cc9697380561..7b7ea4191b0e867d4f969742a3191298edf031a4 100644 (file)
@@ -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 $<'