Skip to content

Commit

Permalink
DAOS-15306 gurt: Fix Coverity message for unchecked return value. (da…
Browse files Browse the repository at this point in the history
…os-stack#13944)

This commit fixes the unchecked return value message from the pthread_mutex_unlock call.

Signed-off-by: Yokesh Jayakumar <[email protected]>
  • Loading branch information
karthjyojay authored Mar 7, 2024
1 parent 9f50af3 commit 232cb50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gurt/dlog.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ static const char *default_fac0name = "CLOG";
/* whether we should merge log and stderr */
static bool merge_stderr;

#define clog_lock() pthread_mutex_lock(&clogmux)
#define clog_unlock() pthread_mutex_unlock(&clogmux)
#define clog_lock() (void)pthread_mutex_lock(&clogmux)
#define clog_unlock() (void)pthread_mutex_unlock(&clogmux)

static int d_log_write(char *buf, int len, bool flush);
static const char *clog_pristr(int);
Expand Down

0 comments on commit 232cb50

Please sign in to comment.