remove warning: variable 'reason_phrase_len' set but not used

when DEBUG is disabled
also
warning: variable 'reason_phrase' set but not used
This commit is contained in:
Thomas Bernard 2016-11-11 12:35:59 +01:00
parent 6c3e21352e
commit 960f8666e8
1 changed files with 4 additions and 0 deletions

View File

@ -83,8 +83,10 @@ getHTTPResponse(int s, int * size, int * status_code)
unsigned int content_buf_used = 0;
char chunksize_buf[32];
unsigned int chunksize_buf_index;
#ifdef DEBUG
char * reason_phrase = NULL;
int reason_phrase_len = 0;
#endif
if(status_code) *status_code = -1;
header_buf = malloc(header_buf_len);
@ -181,8 +183,10 @@ getHTTPResponse(int s, int * size, int * status_code)
*status_code = atoi(header_buf + sp + 1);
else
{
#ifdef DEBUG
reason_phrase = header_buf + sp + 1;
reason_phrase_len = i - sp - 1;
#endif
break;
}
}