From 8d2aaff3e1a277f1d5f7162a333d313d84b626db Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 6 Feb 2020 09:48:43 +0100 Subject: [PATCH] mk/prog.mk: fix warning with clang; use PROG_CFLAGS. --- mk/prog.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mk/prog.mk b/mk/prog.mk index d3ab1020..82ba82b5 100644 --- a/mk/prog.mk +++ b/mk/prog.mk @@ -10,6 +10,8 @@ ifdef BUILD_STATIC BINS += $(BIN).static endif +CFLAGS += -Wno-unused-command-line-argument + .PHONY: all all: $(BINS) @@ -42,7 +44,7 @@ endif %.o: %.c @printf " [CC]\t\t$@\n" - ${SILENT}$(CC) $(CPPFLAGS) $(CFLAGS) $(EXTRA_CFLAGS) -c $< + ${SILENT}$(CC) $(CPPFLAGS) $(PROG_CFLAGS) $(CFLAGS) $(EXTRA_CFLAGS) -c $< $(BIN).static: $(OBJS) $(TOPDIR)/lib/libxbps.a @printf " [CCLD]\t\t$@\n"