]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
get rid of clang warnings for SETPVSBIT/CLEARPVSBIT
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 3 Jan 2011 07:19:41 +0000 (07:19 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 3 Jan 2011 07:19:41 +0000 (07:19 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10691 d7cf8633-e32d-0410-b094-e92efae38249

model_brush.h

index 9d67f60b97cfe834e49112b9487399daac59f83f..cec784638b5c7b608c11b92476399fe4f71b83bd 100644 (file)
@@ -705,8 +705,8 @@ q3mbrushside_t;
 
 // the first cast is to shut up a stupid warning by clang, the second cast is to make both sides have the same type
 #define CHECKPVSBIT(pvs,b) ((b) >= 0 ? (unsigned char) ((pvs)[(b) >> 3] & (1 << ((b) & 7))) : (unsigned char) false)
-#define SETPVSBIT(pvs,b) ((b) >= 0 ? (unsigned char) ((pvs)[(b) >> 3] |= (1 << ((b) & 7))) : (unsigned char) false)
-#define CLEARPVSBIT(pvs,b) ((b) >= 0 ? (unsigned char) ((pvs)[(b) >> 3] &= ~(1 << ((b) & 7))) : (unsigned char) false)
+#define SETPVSBIT(pvs,b) (void) ((b) >= 0 ? (unsigned char) ((pvs)[(b) >> 3] |= (1 << ((b) & 7))) : (unsigned char) false)
+#define CLEARPVSBIT(pvs,b) (void) ((b) >= 0 ? (unsigned char) ((pvs)[(b) >> 3] &= ~(1 << ((b) & 7))) : (unsigned char) false)
 
 #endif