Added (void) as we intentionally ignore returned values.

Requested by Igor Sysoev.
This commit is contained in:
Maxim Dounin 2011-11-28 11:01:42 +00:00
parent 1d13c0dd34
commit a4484b1369
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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);
}
/*