aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-10-03 14:24:23 -0400
committerAndrew Kelley <superjoe30@gmail.com>2016-10-03 14:24:23 -0400
commita098c07aa77a48fe05de3bf2a11884c0dd0cfafb (patch)
tree1d692739a9007044ec1f457bebc9a476f66c038f /src
parent0562111b0208d94852928f4bc7a7f2b8e335366f (diff)
downloadzig-a098c07aa77a48fe05de3bf2a11884c0dd0cfafb.tar.gz
zig-a098c07aa77a48fe05de3bf2a11884c0dd0cfafb.zip
fix warning on some compiler versions
closes #202
Diffstat (limited to 'src')
-rw-r--r--src/parser.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index 6ab0024433..b2cfcceba1 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -2008,6 +2008,7 @@ static AstNode *ast_parse_fn_proto(ParseContext *pc, size_t *token_index, bool m
*token_index += 1;
} else if (mandatory) {
ast_expect_token(pc, first_token, TokenIdKeywordFn);
+ zig_unreachable();
} else {
return nullptr;
}