lang: fix a bunch of compiler warnings
This commit is contained in:
@@ -33,7 +33,7 @@ const struct ast_node_type *get_ast_node_type(enum ivy_ast_node_type type)
|
||||
return node_ops[type];
|
||||
}
|
||||
|
||||
enum tok_expr_type get_tok_expr_type(struct ivy_token *tok)
|
||||
enum token_expr_type get_token_expr_type(struct ivy_token *tok)
|
||||
{
|
||||
switch (tok->t_type) {
|
||||
case IVY_TOK_IDENT:
|
||||
@@ -136,7 +136,7 @@ token_parse_function get_token_parser(
|
||||
return better_parser;
|
||||
}
|
||||
|
||||
enum token_expr_type expr_type = get_tok_expr_type(tok);
|
||||
enum token_expr_type expr_type = get_token_expr_type(tok);
|
||||
switch (expr_type) {
|
||||
case TOK_EXPR_BEGIN:
|
||||
better_parser = type->n_expr_parser.expr_begin
|
||||
|
||||
Reference in New Issue
Block a user