diff options
author | Tom Willemse | 2013-06-08 01:05:23 +0200 |
---|---|---|
committer | Tom Willemse | 2013-06-08 01:05:23 +0200 |
commit | 87a300c3899d9c62ced9b5d687c647cf2dde0d7a (patch) | |
tree | 538bdd3b08d3f3a28dcf26b4b324c62b7e039b91 | |
parent | 39b5431da12ecf3c72d8b86eff600155450fa8be (diff) | |
download | gitto-87a300c3899d9c62ced9b5d687c647cf2dde0d7a.tar.gz gitto-87a300c3899d9c62ced9b5d687c647cf2dde0d7a.zip |
Add warnings when compiling
They help catch some easy to overlook mistakes.
-rw-r--r-- | gitto/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
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) |