lang: fix a bunch of compiler warnings

This commit is contained in:
2024-11-27 22:45:34 +00:00
parent 9df8474515
commit 7f9894d8f9
5 changed files with 39 additions and 21 deletions

View File

@@ -2,6 +2,7 @@
#define IVY_LANG_AST_H_
#include <blue/core/queue.h>
#include <ivy/lang/operator.h>
#include <ivy/misc.h>
#include <ivy/status.h>
@@ -65,7 +66,7 @@ struct ivy_ast_unit_node {
struct ivy_ast_op_node {
struct ivy_ast_node n_base;
enum ivy_ast_op n_op;
enum ivy_operator_id n_op;
struct ivy_ast_node *n_left; // NULL for unary operators.
struct ivy_ast_node *n_right;
};
@@ -248,7 +249,6 @@ IVY_API void ivy_ast_node_print(struct ivy_ast_node *node);
IVY_API void ivy_ast_node_destroy(struct ivy_ast_node *node);
IVY_API const char *ivy_ast_node_type_to_string(enum ivy_ast_node_type v);
IVY_API const char *ivy_ast_op_to_string(enum ivy_ast_op v);
IVY_API const char *ivy_ast_msgh_recipient_type_to_string(
enum ivy_ast_msgh_recipient_type v);