fix: patching the compilation on linux
This commit is contained in:
parent
dd30bf069b
commit
19864c0133
3 changed files with 12 additions and 6 deletions
4
libft/compilation.log
Normal file
4
libft/compilation.log
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
[1msrc/ft_string/ft_chr/ft_putchar_fd.c:17:2: [0m[0;1;31merror: [0m[1mignoring return value of function declared with 'warn_unused_result' attribute [-Werror,-Wunused-result][0m
|
||||
17 | write(fd, &c, 1);[0m
|
||||
| [0;1;32m ^~~~~ ~~~~~~~~~
|
||||
[0m1 error generated.
|
||||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: bgoulard <bgoulard@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/11/07 23:14:51 by bgoulard #+# #+# */
|
||||
/* Updated: 2023/11/09 10:03:06 by bgoulard ### ########.fr */
|
||||
/* Updated: 2024/11/23 12:42:11 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -14,6 +14,6 @@
|
|||
|
||||
void ft_putchar_fd(char c, int fd)
|
||||
{
|
||||
write(fd, &c, 1);
|
||||
(void) write(fd, &c, 1);
|
||||
return ;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue