Skip to content

Commit

Permalink
Added (void) as we intentionally ignore returned values.
Browse files Browse the repository at this point in the history
Requested by Igor Sysoev.
  • Loading branch information
mdounin committed Nov 28, 2011
1 parent 1d13c0d commit a4484b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/ngx_shmtx.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ ngx_shmtx_lock(ngx_shmtx_t *mtx)
#if (NGX_HAVE_POSIX_SEM)

if (mtx->semaphore) {
ngx_atomic_fetch_add(mtx->wait, 1);
(void) ngx_atomic_fetch_add(mtx->wait, 1);

if (*mtx->lock == 0 && ngx_atomic_cmp_set(mtx->lock, 0, ngx_pid)) {
return;
Expand Down
2 changes: 1 addition & 1 deletion src/os/unix/ngx_process.c
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ ngx_unlock_mutexes(ngx_pid_t pid)
*/

if (ngx_accept_mutex_ptr) {
ngx_shmtx_force_unlock(&ngx_accept_mutex, pid);
(void) ngx_shmtx_force_unlock(&ngx_accept_mutex, pid);
}

/*
Expand Down

0 comments on commit a4484b1

Please sign in to comment.