summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-09-19 23:47:19 -0700
committerOri Bernstein <ori@eigenstate.org>2017-09-20 00:15:29 -0700
commitfb3972d74edf7b24f3445eccadc19de1e87a3e18 (patch)
tree55dc8f74a769507de708e0dd4a84c76b0d396f02
parented2494d9fffdfb78d0658e8d3183874e04c8aced (diff)
downloadmc-fb3972d74edf7b24f3445eccadc19de1e87a3e18.tar.gz
Disable -Werror, turn on optimization.
-rw-r--r--mk/c.mk3
1 files changed, 1 insertions, 2 deletions
diff --git a/mk/c.mk b/mk/c.mk
index 25167bc..18f1e50 100644
--- a/mk/c.mk
+++ b/mk/c.mk
@@ -8,8 +8,7 @@ _LIBSRCHPATHS=$(addprefix -L, $(dir $(DEPS)))
_LIBINCPATHS=$(addprefix -I, $(dir $(DEPS))) $(_PCHDRS)
_LIBPATHS=$(addprefix -l, $(patsubst lib%.a,%,$(notdir $(DEPS)))) $(_PCLIBS)
-# yeah, I should probably remove -Werror, but it's nice for developing alone.
-CFLAGS += -Wall -Werror -Wno-unused-parameter -Wno-missing-field-initializers -Wno-sign-compare -Wno-char-subscripts -g -O0
+CFLAGS += -Wall -Wno-unused-parameter -Wno-missing-field-initializers -Wno-sign-compare -Wno-char-subscripts -g -O2
CFLAGS += -MMD -MP -MF .deps/$(subst /,-,$*).d
LIB ?= $(INSTLIB)