Skip to content

Commit

Permalink
Remove unused 'chunksize' to keep gcc-4.6 happy.
Browse files Browse the repository at this point in the history
GCC 4.6 complains about chunksize being initialized and set but
never used:
  /opt/nginx-gridfs/ngx_http_gridfs_module.c:684:16: error: variable ‘chunksize’ set but not used [-Werror=unused-but-set-variable]
  • Loading branch information
Doug Mayer committed Oct 31, 2011
1 parent b5f8113 commit 3aa2269
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ngx_http_gridfs_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,6 @@ static ngx_int_t ngx_http_gridfs_handler(ngx_http_request_t* request) {
gridfs gfs;
gridfile gfile;
gridfs_offset length;
ngx_uint_t chunksize;
ngx_uint_t numchunks;
char* contenttype;
volatile ngx_uint_t i;
Expand Down Expand Up @@ -814,7 +813,6 @@ static ngx_int_t ngx_http_gridfs_handler(ngx_http_request_t* request) {

/* Get information about the file */
length = gridfile_get_contentlength(&gfile);
chunksize = gridfile_get_chunksize(&gfile);
numchunks = gridfile_get_numchunks(&gfile);
contenttype = (char*)gridfile_get_contenttype(&gfile);

Expand Down

0 comments on commit 3aa2269

Please sign in to comment.