From d4f1a9b0adf6ad4126f7b4060b4445a05fa01d43 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 28 Sep 2023 14:23:11 +1000 Subject: [PATCH] Build: resolve build error on MSVC Address error introduced by [0]. [0]: 6b967287c964e4deb9755d35f37998ba9ff06c34 --- intern/guardedalloc/intern/mallocn_guarded_impl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/intern/guardedalloc/intern/mallocn_guarded_impl.c b/intern/guardedalloc/intern/mallocn_guarded_impl.c index 31114f3749e..e216af615a9 100644 --- a/intern/guardedalloc/intern/mallocn_guarded_impl.c +++ b/intern/guardedalloc/intern/mallocn_guarded_impl.c @@ -47,7 +47,9 @@ * twice, once here, and once by LSAN. */ #if defined(_MSC_VER) -# define DEBUG_BACKTRACE +# ifdef WITH_ASAN +# define DEBUG_BACKTRACE +# endif #else /* Un-comment to report back-traces with leaks, uses ASAN when enabled. * NOTE: The default linking options cause the stack traces only to include addresses.