summaryrefslogtreecommitdiff
path: root/mk/c.mk
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-01-21 01:29:25 -0800
committerOri Bernstein <ori@eigenstate.org>2016-01-21 01:29:25 -0800
commit3de36cf522da6e8fdb102fb1169465cbbabb3df4 (patch)
treef19c918569df386af8354c3053b8a20f486eb3ed /mk/c.mk
parent3792aa38235a273f449d25c4fe813de01bce3093 (diff)
downloadmc-3de36cf522da6e8fdb102fb1169465cbbabb3df4.tar.gz
bio.read(f, [][:]) should succeed without Eof.
A read of 0 could be from two cases: EOF, or a zero byte length request. Since a zero byte length request can always be satisifed, it probably shouldn't be an EOF. Especially since this sort of request can show up in the middle of a file. Yes, this is a bit strange to me too, but it seems the most consistent.
Diffstat (limited to 'mk/c.mk')
-rw-r--r--mk/c.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/mk/c.mk b/mk/c.mk
index 0179da9..292f507 100644
--- a/mk/c.mk
+++ b/mk/c.mk
@@ -9,7 +9,7 @@ _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 -Wextra -Werror -Wno-unused-parameter -Wno-missing-field-initializers -Wno-sign-compare -Wno-array-bounds -g -O0
+CFLAGS += -Wall -Wextra -Werror -Wno-unused-parameter -Wno-missing-field-initializers -Wno-sign-compare -Wno-array-bounds -g -O2
CFLAGS += -MMD -MP -MF .deps/$(subst /,-,$*).d
LIB ?= $(INSTLIB)