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:
parent
6c3e21352e
commit
960f8666e8
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue