remis Werror dans makefile et resoud warning dans new_token_for_each_field pour le retour de lst_clear
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2021/11/07 02:01:33 by lperrey #+# #+# */
|
||||
/* Updated: 2021/12/20 14:56:05 by hulamy ### ########.fr */
|
||||
/* Updated: 2021/12/20 17:22:41 by hulamy ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -31,7 +31,8 @@ int new_token_for_each_field(char **fields, t_token *t)
|
||||
{
|
||||
perror("insert_token_for_each_field() error");
|
||||
ft_free_2d_arr(fields);
|
||||
return ((int)ft_lstclear((t_list **)&head.next, NULL));
|
||||
ft_lstclear((t_list **)&head.next, NULL);
|
||||
return (0);
|
||||
}
|
||||
insert_lst->content = fields[i];
|
||||
insert_lst->id = T_WORD;
|
||||
|
||||
Reference in New Issue
Block a user