Skip to content

Commit

Permalink
fixed two spots that trigger the unused-but-set-variable warning by g…
Browse files Browse the repository at this point in the history
…cc 4.6.
  • Loading branch information
agentzh committed Jun 27, 2011
1 parent d1cf986 commit 65002b9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/ngx_http_memc_request.c
Expand Up @@ -23,13 +23,10 @@ ngx_http_memc_create_storage_cmd_request(ngx_http_request_t *r)
ngx_http_variable_value_t *exptime_vv;
ngx_http_variable_value_t *memc_value_vv;

ngx_http_memc_loc_conf_t *mlcf;
u_char bytes_buf[NGX_UINT32_LEN];

/* TODO add support for the "cas" command */

mlcf = ngx_http_get_module_loc_conf(r, ngx_http_memc_module);

ctx = ngx_http_get_module_ctx(r, ngx_http_memc_module);

/* prepare the "key" argument */
Expand Down Expand Up @@ -263,9 +260,6 @@ ngx_http_memc_create_get_cmd_request(ngx_http_request_t *r)
ngx_chain_t *cl;
ngx_http_memc_ctx_t *ctx;
ngx_http_variable_value_t *vv;
ngx_http_memc_loc_conf_t *mlcf;

mlcf = ngx_http_get_module_loc_conf(r, ngx_http_memc_module);

ctx = ngx_http_get_module_ctx(r, ngx_http_memc_module);

Expand Down

0 comments on commit 65002b9

Please sign in to comment.