diff --git a/Makefile b/Makefile index 03d6fb9..4affe38 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ # By: rparodi +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2023/11/12 11:05:05 by rparodi #+# #+# # -# Updated: 2024/11/22 13:06:59 by rparodi ### ########.fr # +# Updated: 2024/11/23 12:41:29 by rparodi ### ########.fr # # # # **************************************************************************** # @@ -26,8 +26,9 @@ CFLAGS += -g3 -MMD # CFLAGS += -fsanitize=address # CFLAGS += -fsanitize=thread -INCLUDES = -I /usr/include -I /opt/X11/include -I ./includes -I ./includes/include -I ./minilibx-linux - +# INCLUDES += -I /opt/X11/include +INCLUDES = -I /usr/include -I ./includes -I ./includes/include -I ./minilibx-linux + # Paths LIBFT_DIR = ./libft MLX_DIR = ./minilibx-linux @@ -36,7 +37,8 @@ MLX_DIR = ./minilibx-linux LDFLAGS = -L./build -lft -lm # MiniLibX flags for macOS with XQuartz -MLXFLAGS = -L$(MLX_DIR) -lmlx -L/opt/X11/lib -lX11 -lXext -lXrender -lXrandr -lXi +MLXFLAGS = -L$(MLX_DIR) -lmlx -lX11 -lXext -lXrender -lXrandr -lXi +#MLXFLAGS += -L/opt/X11/lib # Add MLXFLAGS to the linker flags LDFLAGS += $(MLXFLAGS) diff --git a/libft/compilation.log b/libft/compilation.log new file mode 100644 index 0000000..707331c --- /dev/null +++ b/libft/compilation.log @@ -0,0 +1,4 @@ +src/ft_string/ft_chr/ft_putchar_fd.c:17:2: error: ignoring return value of function declared with 'warn_unused_result' attribute [-Werror,-Wunused-result] + 17 | write(fd, &c, 1); + |  ^~~~~ ~~~~~~~~~ +1 error generated. diff --git a/libft/src/ft_string/ft_chr/ft_putchar_fd.c b/libft/src/ft_string/ft_chr/ft_putchar_fd.c index 94afd76..e7518d2 100644 --- a/libft/src/ft_string/ft_chr/ft_putchar_fd.c +++ b/libft/src/ft_string/ft_chr/ft_putchar_fd.c @@ -6,7 +6,7 @@ /* By: bgoulard +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* 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 ; }