asm: fix all compiler warnings
This commit is contained in:
@@ -48,7 +48,7 @@ void ivy_asm_parser_set_assembler(
|
||||
|
||||
static token_parse_function get_token_parser(struct parser_state *state, struct ivy_asm_token *tok)
|
||||
{
|
||||
struct parser_state_type *type = state->s_type;
|
||||
const struct parser_state_type *type = state->s_type;
|
||||
if (!type) {
|
||||
return NULL;
|
||||
}
|
||||
@@ -103,7 +103,7 @@ enum ivy_status ivy_asm_parser_push_token(
|
||||
return f(p, tok);
|
||||
}
|
||||
|
||||
static struct parser_state_type *get_parser_state_type(enum parser_state_type_id type)
|
||||
static const struct parser_state_type *get_parser_state_type(enum parser_state_type_id type)
|
||||
{
|
||||
if (type < 0 || type >= nr_parser_state_types) {
|
||||
return NULL;
|
||||
@@ -114,7 +114,7 @@ static struct parser_state_type *get_parser_state_type(enum parser_state_type_id
|
||||
|
||||
struct parser_state *asm_parser_push_state(struct ivy_asm_parser *parser, enum parser_state_type_id type)
|
||||
{
|
||||
struct parser_state_type *type_info = get_parser_state_type(type);
|
||||
const struct parser_state_type *type_info = get_parser_state_type(type);
|
||||
|
||||
if (!type_info) {
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user