[nginx] svn commit: r4316 - in trunk/src: core os/unix
mdounin at mdounin.ru
mdounin at mdounin.ru
Mon Nov 28 11:01:42 UTC 2011
Author: mdounin
Date: 2011-11-28 11:01:42 +0000 (Mon, 28 Nov 2011)
New Revision: 4316
Log:
Added (void) as we intentionally ignore returned values.
Requested by Igor Sysoev.
Modified:
trunk/src/core/ngx_shmtx.c
trunk/src/os/unix/ngx_process.c
Modified: trunk/src/core/ngx_shmtx.c
===================================================================
--- trunk/src/core/ngx_shmtx.c 2011-11-28 10:00:47 UTC (rev 4315)
+++ trunk/src/core/ngx_shmtx.c 2011-11-28 11:01:42 UTC (rev 4316)
@@ -97,7 +97,7 @@
#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;
Modified: trunk/src/os/unix/ngx_process.c
===================================================================
--- trunk/src/os/unix/ngx_process.c 2011-11-28 10:00:47 UTC (rev 4315)
+++ trunk/src/os/unix/ngx_process.c 2011-11-28 11:01:42 UTC (rev 4316)
@@ -555,7 +555,7 @@
*/
if (ngx_accept_mutex_ptr) {
- ngx_shmtx_force_unlock(&ngx_accept_mutex, pid);
+ (void) ngx_shmtx_force_unlock(&ngx_accept_mutex, pid);
}
/*
More information about the nginx-devel
mailing list