mirror of
https://github.com/nginx/nginx.git
synced 2024-12-04 22:09:01 +08:00
Added (void) as we intentionally ignore returned values.
Requested by Igor Sysoev.
This commit is contained in:
parent
1d13c0dd34
commit
a4484b1369
@ -97,7 +97,7 @@ ngx_shmtx_lock(ngx_shmtx_t *mtx)
|
|||||||
#if (NGX_HAVE_POSIX_SEM)
|
#if (NGX_HAVE_POSIX_SEM)
|
||||||
|
|
||||||
if (mtx->semaphore) {
|
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)) {
|
if (*mtx->lock == 0 && ngx_atomic_cmp_set(mtx->lock, 0, ngx_pid)) {
|
||||||
return;
|
return;
|
||||||
|
@ -555,7 +555,7 @@ ngx_unlock_mutexes(ngx_pid_t pid)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
if (ngx_accept_mutex_ptr) {
|
if (ngx_accept_mutex_ptr) {
|
||||||
ngx_shmtx_force_unlock(&ngx_accept_mutex, pid);
|
(void) ngx_shmtx_force_unlock(&ngx_accept_mutex, pid);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user