diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2011-11-28 11:01:42 +0000 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2011-11-28 11:01:42 +0000 |
commit | a4484b13694f00c4131c940e6b75690e424dfead (patch) | |
tree | a2200e71f79cbed9447b7ab1744c017037da1327 /src | |
parent | 1d13c0dd34d859d28ede439d248438a2288d39fc (diff) | |
download | nginx-a4484b13694f00c4131c940e6b75690e424dfead.tar.gz nginx-a4484b13694f00c4131c940e6b75690e424dfead.zip |
Added (void) as we intentionally ignore returned values.
Requested by Igor Sysoev.
Diffstat (limited to 'src')
-rw-r--r-- | src/core/ngx_shmtx.c | 2 | ||||
-rw-r--r-- | src/os/unix/ngx_process.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ngx_shmtx.c b/src/core/ngx_shmtx.c index 34148684f..8a3178e61 100644 --- 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 index 9f1936bd1..3eba6ce23 100644 --- 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); } /* |