From 4c1cc6101f55ba7fa1543fb1473b580d77f23db0 Mon Sep 17 00:00:00 2001 From: Giovanni Mascellani Date: Fri, 26 Jul 2024 11:02:20 +0200 Subject: [PATCH] vkd3d: Disable WARN_ON() when VKD3D_NO_DEBUG_MESSAGES is defined. Similarly to WARN(). --- include/private/vkd3d_common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/private/vkd3d_common.h b/include/private/vkd3d_common.h index 6fbcbcc9..b84d27f7 100644 --- a/include/private/vkd3d_common.h +++ b/include/private/vkd3d_common.h @@ -122,6 +122,7 @@ VKD3D_NORETURN static inline void vkd3d_unreachable_(const char *filename, unsig #ifdef VKD3D_NO_DEBUG_MESSAGES #define WARN(args...) do { } while (0) #define FIXME(args...) do { } while (0) +#define WARN_ON() (false) #endif enum vkd3d_dbg_level