From 87a300c3899d9c62ced9b5d687c647cf2dde0d7a Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sat, 8 Jun 2013 01:05:23 +0200 Subject: Add warnings when compiling They help catch some easy to overlook mistakes. --- gitto/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gitto/Makefile b/gitto/Makefile index ba060fc..8832fde 100644 --- a/gitto/Makefile +++ b/gitto/Makefile @@ -8,13 +8,16 @@ objects = config.scm config.go git.scm git.go ui.scm ui.go main.scm \ install-objects = $(addprefix install-,$(objects)) uninstall-objects = $(addprefix uninstall-,$(objects)) +warnings = unused-variable unused-toplevel unbound-variable \ + arity-mismatch duplicate-case-datum bad-case-datum format + .PHONY: all install $(install-objects) uninstall $(uninstall-objects) \ clean all: $(filter %.go,$(objects)) $(filter %.go,$(objects)): %.go: %.scm - ../env guild compile -o $@ $^ + ../env guild compile $(addprefix -W ,$(warnings)) -o $@ $^ install: $(install-objects) uninstall: $(uninstall-objects) -- cgit v1.2.3-54-g00ecf