summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0f53165..a991a08 100644
--- a/Makefile
+++ b/Makefile
@@ -31,7 +31,12 @@ ifeq ($(DEBUG), 1)
CFLAGS_MIN += -g -DDEBUG
endif
-CFLAGS ?= -O2
+CFLAGS_WARN := -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations \
+ -Wdeclaration-after-statement -Wsign-compare -Winit-self \
+ -Wformat-nonliteral -Wformat-security -Wmissing-format-attribute \
+ -Wundef -Wbad-function-cast -Waggregate-return -Wunused -Wwrite-strings
+
+CFLAGS ?= -O2 $(CFLAGS_WARN)
override CFLAGS := $(CFLAGS_MIN) $(CFLAGS)
Q ?= @