From 2994c35b1f0a676c6df21854464f139507555fea Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Wed, 3 Feb 2021 19:10:42 +0100 Subject: Fixing -Wunused-result --- src/io/ft_putchar.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/io/ft_putchar.c') diff --git a/src/io/ft_putchar.c b/src/io/ft_putchar.c index 2838f0a..8dd6f65 100644 --- a/src/io/ft_putchar.c +++ b/src/io/ft_putchar.c @@ -6,7 +6,7 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/10/07 09:53:31 by cacharle #+# #+# */ -/* Updated: 2019/11/20 03:49:14 by cacharle ### ########.fr */ +/* Updated: 2021/02/03 19:21:40 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -14,5 +14,8 @@ void ft_putchar(char c) { - write(STDOUT_FILENO, &c, 1); + if (write(STDOUT_FILENO, &c, 1)) + { + ; + } } -- cgit