]> git.kaiwu.me - nginx.git/commitdiff
Added (void) as we intentionally ignore returned values.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 28 Nov 2011 11:01:42 +0000 (11:01 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 28 Nov 2011 11:01:42 +0000 (11:01 +0000)
Requested by Igor Sysoev.

src/core/ngx_shmtx.c
src/os/unix/ngx_process.c

index 34148684f3dbe322fc7b98d398b2c8f476589e87..8a3178e61bed8e7c9b72845061b687f4f81122bd 100644 (file)
@@ -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;
index 9f1936bd1fd06acf2188029d9c9c7c7876da06e7..3eba6ce235411bf655bc10b14dbd1ebd9dd674ec 100644 (file)
@@ -555,7 +555,7 @@ ngx_unlock_mutexes(ngx_pid_t pid)
      */
 
     if (ngx_accept_mutex_ptr) {
-        ngx_shmtx_force_unlock(&ngx_accept_mutex, pid);
+        (void) ngx_shmtx_force_unlock(&ngx_accept_mutex, pid);
     }
 
     /*