Permalink
Browse files

fixed two spots that trigger -Wunused-but-set-variable by gcc 4.6.

  • Loading branch information...
1 parent 4c0296e commit e67acc727f025261f6f2c68f77371c44ddee77e7 @agentzh agentzh committed Jun 27, 2011
Showing with 1 addition and 7 deletions.
  1. +0 −3 src/ngx_http_drizzle_processor.c
  2. +1 −4 src/ngx_http_drizzle_upstream.c
@@ -118,13 +118,10 @@ ngx_http_upstream_drizzle_connect(ngx_http_request_t *r,
ngx_connection_t *c, ngx_http_upstream_drizzle_peer_data_t *dp,
drizzle_con_st *dc)
{
- ngx_http_upstream_t *u;
drizzle_return_t ret;
dd("drizzle connect");
- u = r->upstream;
-
ret = drizzle_con_connect(dc);
if (ret == DRIZZLE_RETURN_IO_WAIT) {
@@ -856,17 +856,14 @@ static ngx_int_t
ngx_http_drizzle_output_filter(void *data, ngx_chain_t *in)
{
ngx_http_request_t *r = data;
- ngx_int_t rc;
dd("drizzle output filter");
/* just to ensure u->reinit_request always gets called for
* upstream_next */
r->upstream->request_sent = 1;
- rc = ngx_http_drizzle_process_events(r);
-
- dd("process events returns %d", (int) rc);
+ dd("process events returns %d", (int) ngx_http_drizzle_process_events(r));
/* discard the ret val from process events because
* we can only return NGX_AGAIN here to prevent

0 comments on commit e67acc7

Please sign in to comment.