From: divverent Date: Mon, 3 Jan 2011 07:19:41 +0000 (+0000) Subject: get rid of clang warnings for SETPVSBIT/CLEARPVSBIT X-Git-Tag: xonotic-v0.5.0~438^2~150 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1f05f42cb9c14b8d8417696283ef73e2ff641fed;p=xonotic%2Fdarkplaces.git get rid of clang warnings for SETPVSBIT/CLEARPVSBIT git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10691 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/model_brush.h b/model_brush.h index 9d67f60b..cec78463 100644 --- a/model_brush.h +++ b/model_brush.h @@ -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