commit 58f286d6fc3f886660a9b0eb5f1b8e5839e79694
parent fdd0f9e02abfea8fa4ec48ef4a9100b03f83bedc
Author: Michael Forney <mforney@mforney.org>
Date: Mon, 25 Nov 2013 14:01:33 -0800
Add some error/warning flags
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
@@ -30,6 +30,11 @@ endef
FINAL_CFLAGS = $(CFLAGS) -fvisibility=hidden
FINAL_CPPFLAGS = $(CPPFLAGS)
+# Warning/error flags
+FINAL_CFLAGS += -Werror=implicit-function-declaration -Werror=implicit-int \
+ -Werror=pointer-sign -Werror=pointer-arith \
+ -Wall -Wno-missing-braces
+
compile = $(call quiet,CC) $(FINAL_CPPFLAGS) $(FINAL_CFLAGS) -I . -c -o $@ $< \
-MMD -MP -MF .deps/$(basename $<).d -MT $(basename $@).o -MT $(basename $@).lo
link = $(call quiet,CCLD,$(CC)) $(FINAL_CFLAGS) -o $@ $^