aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2011-12-17 05:05:16 +0000
committerBen Hutchings <ben@decadent.org.uk>2011-12-17 05:05:16 +0000
commit135f4ce3ab19ce1da76fce5f88288dd93dcba8e5 (patch)
treef8efca5dde6fcfc5ca0e78f60345df5b0fb3ed8d
parentbc1c192290e907cdec67bb7bf420bdc04bfcc4ed (diff)
downloadcis-tools-135f4ce3ab19ce1da76fce5f88288dd93dcba8e5.tar.gz
Enable warnings (-Wall -W) by default
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 10667d6..1fceb75 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,4 @@
+CFLAGS += -Wall -W
CPPFLAGS += -I.
YFLAGS = -d
@@ -14,7 +15,7 @@ yacc_cis.o: yacc_cis.c
@mkdir -p .depfiles ; mv $*.d .depfiles
lex_cis.o: lex_cis.c yacc_cis.h
- $(CC) -MD $(CFLAGS) $(CPPFLAGS) -c $<
+ $(CC) -MD $(CFLAGS) -Wno-unused-function $(CPPFLAGS) -c $<
@mkdir -p .depfiles ; mv $*.d .depfiles
pack_cis: pack_cis.o lex_cis.o yacc_cis.o