diff --git a/src/execute/utils/ast_variable.c b/src/execute/utils/ast_variable.c index ddc8ad1b..f12bbad3 100644 --- a/src/execute/utils/ast_variable.c +++ b/src/execute/utils/ast_variable.c @@ -38,7 +38,7 @@ static struct environment_function environment[] = { /** * \brief Initialize the variables hash map. */ -void init_variables() +void init_variables(void) { if (variables == NULL) { @@ -49,7 +49,7 @@ void init_variables() /** * \brief Free the variables hash map. */ -void free_variables() +void free_variables(void) { if (variables != NULL) hash_map_free(variables); diff --git a/src/lexer/lexer.c b/src/lexer/lexer.c index ace60a4e..4c96238c 100644 --- a/src/lexer/lexer.c +++ b/src/lexer/lexer.c @@ -236,7 +236,7 @@ char *get_word(struct lexer *lexer, bool *is_diactivated) struct token parse_input_for_tok(struct lexer *lexer) { - struct token token; + struct token token = lexer->curr_tok; // Usefull to diactivate the special meaning of the next character when it's // a backslash