fixing warning issue with clang

This commit is contained in:
Kbz-8
2023-12-10 23:15:59 +01:00
parent 52ca0c0d1b
commit c36de40f4a
2 changed files with 4 additions and 9 deletions

View File

@@ -6,7 +6,7 @@
# By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# 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)
CXX = g++
CXXFLAGS += -Wno-error=cpp
else
CXXFLAGS += -Wno-error=#warning
endif
ifeq ($(OS), Darwin)

View File

@@ -6,7 +6,7 @@
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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
#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"
#ifdef MLX_COMPILER_CLANG
#pragma clang diagnostic pop
#endif
#else
#pragma NOTE("MLX is being compiled in debug mode, this activates Vulkan's validation layers and debug messages which may impact rendering performances")
#endif