# HG changeset patch # User Maxim Dounin # Date 1322478102 0 # Node ID 424a1ac6af435b0b22e7a881ff50c478c340f66d # Parent 4a07bad0e2c5e6c3174abbf6c085d0ce92929907 Added (void) as we intentionally ignore returned values. Requested by Igor Sysoev. diff --git a/src/core/ngx_shmtx.c b/src/core/ngx_shmtx.c --- a/src/core/ngx_shmtx.c +++ b/src/core/ngx_shmtx.c @@ -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; diff --git a/src/os/unix/ngx_process.c b/src/os/unix/ngx_process.c --- a/src/os/unix/ngx_process.c +++ b/src/os/unix/ngx_process.c @@ -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); } /*