summaryrefslogtreecommitdiff
path: root/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
commitc9328b72bb718ae83d97cda5641204e5e6c93d7e (patch)
tree92d4dbd2d28446fca9dae1f9924b97accbee3b51 /mk
parentd8acb32cc712584e789a4146044e64dfa1857f68 (diff)
downloadmc-c9328b72bb718ae83d97cda5641204e5e6c93d7e.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')
-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