fixing warning issue with clang

This commit is contained in:
2023-12-10 23:15:59 +01:00
parent 49f6bb4b71
commit 5f6a28f4f8
2 changed files with 4 additions and 9 deletions

View File

@@ -6,7 +6,7 @@
# By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ # # By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ # # +#+#+#+#+#+ +#+ #
# Created: 2022/10/04 16:43:41 by maldavid #+# #+# # # Created: 2022/10/04 16:43:41 by maldavid #+# #+# #
# Updated: 2023/12/10 23:08:16 by kbz_8 ### ########.fr # # Updated: 2023/12/10 23:15:03 by kbz_8 ### ########.fr #
# # # #
# **************************************************************************** # # **************************************************************************** #
@@ -39,6 +39,8 @@ LDLIBS =
ifeq ($(TOOLCHAIN), gcc) ifeq ($(TOOLCHAIN), gcc)
CXX = g++ CXX = g++
CXXFLAGS += -Wno-error=cpp CXXFLAGS += -Wno-error=cpp
else
CXXFLAGS += -Wno-error=#warning
endif endif
ifeq ($(OS), Darwin) ifeq ($(OS), Darwin)

View File

@@ -6,7 +6,7 @@
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */ /* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2022/12/17 23:33:34 by maldavid #+# #+# */ /* Created: 2022/12/17 23:33:34 by maldavid #+# #+# */
/* Updated: 2023/12/10 23:04:04 by kbz_8 ### ########.fr */ /* Updated: 2023/12/10 23:14:18 by kbz_8 ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@@ -25,14 +25,7 @@
#ifdef DEBUG #ifdef DEBUG
#ifndef MLX_COMPILER_MSVC #ifndef MLX_COMPILER_MSVC
#ifdef MLX_COMPILER_CLANG
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-W#warnings"
#endif
#warning "MLX is being compiled in debug mode, this activates Vulkan's validation layers and debug messages which may impact rendering performances" #warning "MLX is being compiled in debug mode, this activates Vulkan's validation layers and debug messages which may impact rendering performances"
#ifdef MLX_COMPILER_CLANG
#pragma clang diagnostic pop
#endif
#else #else
#pragma NOTE("MLX is being compiled in debug mode, this activates Vulkan's validation layers and debug messages which may impact rendering performances") #pragma NOTE("MLX is being compiled in debug mode, this activates Vulkan's validation layers and debug messages which may impact rendering performances")
#endif #endif