summaryrefslogtreecommitdiff
path: root/mk/c.mk
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-11-15 17:07:28 -0800
committerOri Bernstein <ori@eigenstate.org>2015-11-15 19:17:25 -0800
commitfcc859d58857fce2701ee30abd79ed891a46c3b2 (patch)
tree4fc0317015b37aabf01012ad51b96a2912f84896 /mk/c.mk
parentaf4500539de576c28d982faad6ac8b845ed236ce (diff)
downloadmc-fcc859d58857fce2701ee30abd79ed891a46c3b2.tar.gz
Fix build flags for Clang/Yacc
This allows us to build with -Werror again. Thanks to Ryan Gonzalez.
Diffstat (limited to 'mk/c.mk')
-rw-r--r--mk/c.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/c.mk b/mk/c.mk
index 5e98765..218c34c 100644
--- a/mk/c.mk
+++ b/mk/c.mk
@@ -7,7 +7,7 @@ _LIBINCPATHS=$(addprefix -I, $(dir $(DEPS)))
_LIBPATHS=$(addprefix -l, $(patsubst lib%.a,%,$(notdir $(DEPS))))
# yeah, I should probably remove -Werror, but it's nice for developing alone.
-CFLAGS += -Wall -Werror -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -g
+CFLAGS += -Wall -Werror -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-sign-compare -Wno-array-bounds -g
CFLAGS += -MMD -MP -MF ${_DEPSDIR}/$(subst /,-,$*).d
LIB ?= $(INSTLIB)
@@ -114,7 +114,7 @@ uninstall: subdirs-uninstall $(EXTRAUNINSTALL)
%.o: %.c $(GENHDR) .deps
$(CC) -c $(CFLAGS) $(_LIBINCPATHS) $<
-.deps:
+.deps:
mkdir -p $(_DEPSDIR)
config.mk: configure