From: divverent Date: Fri, 10 Feb 2012 14:00:13 +0000 (+0000) Subject: fix clang warnings for unused result of *_LockThreadMutex X-Git-Tag: xonotic-v0.6.0~39 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=70441b8668c47278882d43a31adcc1cc40ae8b3c;p=xonotic%2Fdarkplaces.git fix clang warnings for unused result of *_LockThreadMutex git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11674 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=8e4d41ab346185f7e878e4eaf97c47dc70321e9d --- diff --git a/cmd.c b/cmd.c index 651d08e2..51d3f0c1 100644 --- a/cmd.c +++ b/cmd.c @@ -177,8 +177,8 @@ static sizebuf_t cmd_text; static unsigned char cmd_text_buf[CMDBUFSIZE]; void *cmd_text_mutex = NULL; -#define Cbuf_LockThreadMutex() (cmd_text_mutex ? Thread_LockMutex(cmd_text_mutex),1 : 0) -#define Cbuf_UnlockThreadMutex() (cmd_text_mutex ? Thread_UnlockMutex(cmd_text_mutex),1 : 0) +#define Cbuf_LockThreadMutex() (void)(cmd_text_mutex ? Thread_LockMutex(cmd_text_mutex) : 0) +#define Cbuf_UnlockThreadMutex() (void)(cmd_text_mutex ? Thread_UnlockMutex(cmd_text_mutex) : 0) /* ============ diff --git a/server.h b/server.h index 327bbd7a..32118563 100644 --- a/server.h +++ b/server.h @@ -594,8 +594,8 @@ void SV_GetEntityMatrix(prvm_prog_t *prog, prvm_edict_t *ent, matrix4x4_t *out, void SV_StartThread(void); void SV_StopThread(void); -#define SV_LockThreadMutex() (svs.threaded ? Thread_LockMutex(svs.threadmutex),1 : 0) -#define SV_UnlockThreadMutex() (svs.threaded ? Thread_UnlockMutex(svs.threadmutex),1 : 0) +#define SV_LockThreadMutex() (void)(svs.threaded ? Thread_LockMutex(svs.threadmutex) : 0) +#define SV_UnlockThreadMutex() (void)(svs.threaded ? Thread_UnlockMutex(svs.threadmutex) : 0) void VM_CustomStats_Clear(void); void VM_SV_UpdateCustomStats(client_t *client, prvm_edict_t *ent, sizebuf_t *msg, int *stats);