From 8e4d41ab346185f7e878e4eaf97c47dc70321e9d Mon Sep 17 00:00:00 2001 From: divverent Date: Fri, 10 Feb 2012 14:00:13 +0000 Subject: [PATCH] fix clang warnings for unused result of *_LockThreadMutex git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11674 d7cf8633-e32d-0410-b094-e92efae38249 --- cmd.c | 4 ++-- server.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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); -- 2.39.2