Mercurial > hg > nginx
changeset 4315:424a1ac6af43
Added (void) as we intentionally ignore returned values.
Requested by Igor Sysoev.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 28 Nov 2011 11:01:42 +0000 |
parents | 4a07bad0e2c5 |
children | 482d7d907f1a |
files | src/core/ngx_shmtx.c src/os/unix/ngx_process.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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;