Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix GCC4.6 errors on -Wunused-but-set-variable.

  • Loading branch information...
commit eb9fa0f532fa2123c2b30c86c99431564178656a 1 parent f8ba503
@sam authored wieck committed
Showing with 1 addition and 5 deletions.
  1. +1 −3 ngx_http_zip_file.c
  2. +0 −2  ngx_http_zip_headers.c
View
4 ngx_http_zip_file.c
@@ -223,7 +223,6 @@ ngx_http_zip_generate_pieces(ngx_http_request_t *r, ngx_http_zip_ctx_t *ctx)
#ifdef NGX_ZIP_HAVE_ICONV
if (ctx->unicode_path) {
size_t inlen = file->filename.len, outlen, outleft;
- size_t res;
u_char *p, *in;
//inbuf
@@ -243,8 +242,7 @@ ngx_http_zip_generate_pieces(ngx_http_request_t *r, ngx_http_zip_ctx_t *ctx)
iconv(iconv_cd, NULL, NULL, NULL, NULL);
//convert the string
- res = iconv(iconv_cd, (char **)&in, &inlen, (char **)&p, &outleft);
- //XXX if (res == (size_t)-1) { ? }
+ iconv(iconv_cd, (char **)&in, &inlen, (char **)&p, &outleft);
file->filename.len = outlen - outleft;
View
2  ngx_http_zip_headers.c
@@ -196,10 +196,8 @@ ngx_http_zip_add_partial_content_range(ngx_http_request_t *r,
ngx_int_t
ngx_http_zip_strip_range_header(ngx_http_request_t *r)
{
- ngx_list_part_t *part;
ngx_table_elt_t *header;
- part = &r->headers_in.headers.part;
header = r->headers_in.range;
if (header) {
Please sign in to comment.
Something went wrong with that request. Please try again.