Welcome! Log In Create A New Profile

Advanced

[nginx] svn commit: r4316 - in trunk/src: core os/unix

Anonymous User
November 28, 2011 06:02AM
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);
}

/*

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] svn commit: r4316 - in trunk/src: core os/unix

Anonymous User 1197 November 28, 2011 06:02AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 162
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready