summaryrefslogtreecommitdiff
path: root/mk/c.mk
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-02-25 20:02:37 -0500
committerOri Bernstein <ori@eigenstate.org>2014-02-25 20:02:37 -0500
commitd67ec38ce3240abf440e6ba7b6aae7a1d28b3c5f (patch)
tree92d4dbd2d28446fca9dae1f9924b97accbee3b51 /mk/c.mk
parent7ad2500a5180e9e998cb913f8cb8d42a30bb505a (diff)
downloadmc-d67ec38ce3240abf440e6ba7b6aae7a1d28b3c5f.tar.gz
Remove unreachable code warning.
It errors on code like this: die("Unimplemented"); break; But it shouldn't. So, we turn off the flag.
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 1355014..a98a5c2 100644
--- a/mk/c.mk
+++ b/mk/c.mk
@@ -6,7 +6,7 @@ _LIBSRCHPATHS=$(addprefix -L, $(dir $(DEPS)))
_LIBINCPATHS=$(addprefix -I, $(dir $(DEPS)))
_LIBPATHS=$(addprefix -l, $(patsubst lib%.a,%,$(notdir $(DEPS))))
-CFLAGS += -Wall -Werror -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wunreachable-code
+CFLAGS += -Wall -Werror -Wextra -Wno-unused-parameter -Wno-missing-field-initializers
CFLAGS += -g
CFLAGS += -MMD -MP -MF ${_DEPSDIR}/$(subst /,-,$*).d