Merge pull request #943 from pagespeed/crowell-rm_unused_variable

move 'type' variable to inside an #if statement
This commit is contained in:
Jeffrey Crowell
2015-03-30 14:34:48 -04:00
+2
View File
@@ -120,7 +120,9 @@ void NgxBaseFetch::ReadCallback(const ps_event_data& data) {
NgxBaseFetch* base_fetch = reinterpret_cast<NgxBaseFetch*>(data.sender);
ngx_http_request_t* r = base_fetch->request();
bool detached = base_fetch->detached();
#if (NGX_DEBUG) // `type` is unused if NGX_DEBUG isn't set, needed for -Werror.
const char* type = BaseFetchTypeToCStr(base_fetch->base_fetch_type_);
#endif
int refcount = base_fetch->DecrementRefCount();
#if (NGX_DEBUG)