lang: ast: fix compiler warnings
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
#include "node.h"
|
||||
|
||||
#include <ivy/lang/ast.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
extern struct ast_node_type unit_node_ops;
|
||||
extern struct ast_node_type unit_package_node_ops;
|
||||
@@ -80,7 +80,8 @@ enum ivy_status ast_node_add_child(
|
||||
return add_child(parent, child);
|
||||
}
|
||||
|
||||
static enum ivy_status node_print(struct ivy_ast_node *node, struct ivy_ast_node_iterator *it)
|
||||
static enum ivy_status node_print(
|
||||
struct ivy_ast_node *node, struct ivy_ast_node_iterator *it)
|
||||
{
|
||||
for (unsigned int i = 0; i < node->n_it.it_depth; i++) {
|
||||
fputs(" ", stdout);
|
||||
@@ -165,7 +166,7 @@ const char *ivy_ast_op_to_string(enum ivy_ast_op v)
|
||||
}
|
||||
}
|
||||
|
||||
const char *ivy_ast_msgh_recipient_type_to_string(enum ivy_ast_op v)
|
||||
const char *ivy_ast_msgh_recipient_type_to_string(enum ivy_ast_msgh_recipient_type v)
|
||||
{
|
||||
switch (v) {
|
||||
ENUM_STR(IVY_AST_MSGH_NONE);
|
||||
|
||||
Reference in New Issue
Block a user