Signed-off-by: Peter Colberg <[email protected]>
---
cgit.mk | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/cgit.mk b/cgit.mk
index 1b50307..f8fc6b3 100644
--- a/cgit.mk
+++ b/cgit.mk
@@ -21,6 +21,11 @@ CGIT_CFLAGS += -DCGIT_CONFIG='"$(CGIT_CONFIG)"'
CGIT_CFLAGS += -DCGIT_SCRIPT_NAME='"$(CGIT_SCRIPT_NAME)"'
CGIT_CFLAGS += -DCGIT_CACHE_ROOT='"$(CACHE_ROOT)"'
+# Warn if function is declared or defined without argument types
+CGIT_CFLAGS += -Wstrict-prototypes
+# Warn if function is defined without previous declaration in header
+CGIT_CFLAGS += -Wmissing-prototypes
+
ifdef NO_C99_FORMAT
CFLAGS += -DNO_C99_FORMAT
endif
--
2.7.0.rc3
_______________________________________________
CGit mailing list
[email protected]
http://lists.zx2c4.com/mailman/listinfo/cgit