From db0bfe56689d8ca9bd2f716836db04d4cd252588 Mon Sep 17 00:00:00 2001 From: Jack <jack.barraclough.1@gmail.com> Date: 周三, 22 2月 2017 00:59:26 +0800 Subject: [PATCH] Fix compiler warning with USE_COMMAND_TAGS 0 --- examples/test-interactive/Makefile | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/test-interactive/Makefile b/examples/test-interactive/Makefile index 1d225a9..400e123 100644 --- a/examples/test-interactive/Makefile +++ b/examples/test-interactive/Makefile @@ -2,9 +2,10 @@ PROG = test SRCS = main.c ../common/scpi-def.c -CFLAGS += -Wextra -I ../../libscpi/inc/ -LDFLAGS += ../../libscpi/dist/libscpi.a +CFLAGS += -Wextra -Wmissing-prototypes -Wimplicit -I ../../libscpi/inc/ +LDFLAGS += ../../libscpi/dist/libscpi.a -Wl,--as-needed +.PHONY: clean all all: $(PROG) @@ -14,7 +15,7 @@ $(CC) -c $(CFLAGS) $(CPPFLAGS) -o $@ $< $(PROG): $(OBJS) - $(CC) -o $@ $(OBJS) $(LDFLAGS) + $(CC) -o $@ $(OBJS) $(CFLAGS) $(LDFLAGS) clean: $(RM) $(PROG) $(OBJS) -- Gitblit v1.9.1