Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2011-11-28 15:01:42 +0400
committerMaxim Dounin <mdounin@mdounin.ru>2011-11-28 15:01:42 +0400
commita4484b13694f00c4131c940e6b75690e424dfead (patch)
treea2200e71f79cbed9447b7ab1744c017037da1327 /src/core/ngx_shmtx.c
parent1d13c0dd34d859d28ede439d248438a2288d39fc (diff)
Added (void) as we intentionally ignore returned values.
Requested by Igor Sysoev.
Diffstat (limited to 'src/core/ngx_shmtx.c')
-rw-r--r--src/core/ngx_shmtx.c2
1 files changed, 1 insertions, 1 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;