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;
|
unsigned int content_buf_used = 0;
|
||||||
char chunksize_buf[32];
|
char chunksize_buf[32];
|
||||||
unsigned int chunksize_buf_index;
|
unsigned int chunksize_buf_index;
|
||||||
|
#ifdef DEBUG
|
||||||
char * reason_phrase = NULL;
|
char * reason_phrase = NULL;
|
||||||
int reason_phrase_len = 0;
|
int reason_phrase_len = 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
if(status_code) *status_code = -1;
|
if(status_code) *status_code = -1;
|
||||||
header_buf = malloc(header_buf_len);
|
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);
|
*status_code = atoi(header_buf + sp + 1);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
#ifdef DEBUG
|
||||||
reason_phrase = header_buf + sp + 1;
|
reason_phrase = header_buf + sp + 1;
|
||||||
reason_phrase_len = i - sp - 1;
|
reason_phrase_len = i - sp - 1;
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue