From 1b72ad0c3d57e4c19a90f27106e4ffd435c0e04e Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 9 Apr 2015 13:55:46 +1000 Subject: [PATCH] GHOST: don't instantiate assert arg When debugging is disabled, function calls in an assert should never run. --- intern/ghost/intern/GHOST_Debug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intern/ghost/intern/GHOST_Debug.h b/intern/ghost/intern/GHOST_Debug.h index c99f3dfac95..db49627b378 100644 --- a/intern/ghost/intern/GHOST_Debug.h +++ b/intern/ghost/intern/GHOST_Debug.h @@ -80,7 +80,7 @@ } \ } (void)0 #else // GHOST_DEBUG -# define GHOST_ASSERT(x, info) (void)(x) +# define GHOST_ASSERT(x, info) ((void)0) #endif // GHOST_DEBUG #endif // __GHOST_DEBUG_H__