diff --git a/source/include/smb_macros.h b/source/include/smb_macros.h index 9fe7f26cb31..fe0d15149bb 100644 --- a/source/include/smb_macros.h +++ b/source/include/smb_macros.h @@ -54,7 +54,7 @@ #define PTR_DIFF(p1,p2) ((ptrdiff_t)(((const char *)(p1)) - (const char *)(p2))) /* assert macros */ -#define SMB_ASSERT(b) ((b)?0: \ +#define SMB_ASSERT(b) ((b)?(void)0: \ (DEBUG(0,("PANIC: assert failed at %s(%d)\n", \ __FILE__, __LINE__)), smb_panic("assert failed"))) #define SMB_ASSERT_ARRAY(a,n) SMB_ASSERT((sizeof(a)/sizeof((a)[0])) >= (n))