diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2009-06-18 13:14:51 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2009-06-18 13:14:51 +0000 |
| commit | a5fe5881c6d38983e868cc7918008529fb6ab710 (patch) | |
| tree | d72c0b8d8d1ff2fc586f56a90e1cdcd064a9fe37 /src/event/ngx_event_accept.c | |
| parent | 1f823708e07c3ecf3d1e71ca73730b737d3b5659 (diff) | |
| download | nginx-a5fe5881c6d38983e868cc7918008529fb6ab710.tar.gz nginx-a5fe5881c6d38983e868cc7918008529fb6ab710.tar.bz2 | |
ignore ngx_atomic_fetch_add() result
this fixes building at least by gcc 4.2.1 on Mac OS X 10.6
Diffstat (limited to 'src/event/ngx_event_accept.c')
| -rw-r--r-- | src/event/ngx_event_accept.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/event/ngx_event_accept.c b/src/event/ngx_event_accept.c index a17d63038..05624ade5 100644 --- a/src/event/ngx_event_accept.c +++ b/src/event/ngx_event_accept.c @@ -75,7 +75,7 @@ ngx_event_accept(ngx_event_t *ev) } #if (NGX_STAT_STUB) - ngx_atomic_fetch_add(ngx_stat_accepted, 1); + (void) ngx_atomic_fetch_add(ngx_stat_accepted, 1); #endif ngx_accept_disabled = ngx_cycle->connection_n / 8 @@ -93,7 +93,7 @@ ngx_event_accept(ngx_event_t *ev) } #if (NGX_STAT_STUB) - ngx_atomic_fetch_add(ngx_stat_active, 1); + (void) ngx_atomic_fetch_add(ngx_stat_active, 1); #endif c->pool = ngx_create_pool(ls->pool_size, ev->log); @@ -188,7 +188,7 @@ ngx_event_accept(ngx_event_t *ev) c->number = ngx_atomic_fetch_add(ngx_connection_counter, 1); #if (NGX_STAT_STUB) - ngx_atomic_fetch_add(ngx_stat_handled, 1); + (void) ngx_atomic_fetch_add(ngx_stat_handled, 1); #endif #if (NGX_THREADS) @@ -379,7 +379,7 @@ ngx_close_accepted_connection(ngx_connection_t *c) } #if (NGX_STAT_STUB) - ngx_atomic_fetch_add(ngx_stat_active, -1); + (void) ngx_atomic_fetch_add(ngx_stat_active, -1); #endif } |
