Mercurial > hg > nginx
comparison src/core/ngx_shmtx.c @ 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 | 13f108b9f3cf |
children | d620f497c50f |
comparison
equal
deleted
inserted
replaced
4314:4a07bad0e2c5 | 4315:424a1ac6af43 |
---|---|
95 } | 95 } |
96 | 96 |
97 #if (NGX_HAVE_POSIX_SEM) | 97 #if (NGX_HAVE_POSIX_SEM) |
98 | 98 |
99 if (mtx->semaphore) { | 99 if (mtx->semaphore) { |
100 ngx_atomic_fetch_add(mtx->wait, 1); | 100 (void) ngx_atomic_fetch_add(mtx->wait, 1); |
101 | 101 |
102 if (*mtx->lock == 0 && ngx_atomic_cmp_set(mtx->lock, 0, ngx_pid)) { | 102 if (*mtx->lock == 0 && ngx_atomic_cmp_set(mtx->lock, 0, ngx_pid)) { |
103 return; | 103 return; |
104 } | 104 } |
105 | 105 |