fixed IRIX compiller error message
authorHerb Lewis <herb@samba.org>
Tue, 26 Sep 2000 14:48:52 +0000 (14:48 +0000)
committerHerb Lewis <herb@samba.org>
Tue, 26 Sep 2000 14:48:52 +0000 (14:48 +0000)
(This used to be commit 908da12d5f24ea076db6627ef0d4407e1cdcd014)

source3/include/smb_macros.h

index 9fe7f26cb311c50e5c1e15764ff3bd972cd7155e..fe0d15149bb0e7737471013b3ff60cc9718f65f1 100644 (file)
@@ -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))