mirror of
https://github.com/curl/curl.git
synced 2026-08-24 11:13:39 +03:00
Fixed some compiler warnings with gcc
This commit is contained in:
parent
91bc396178
commit
88513d2d1a
7 changed files with 15 additions and 13 deletions
|
|
@ -540,8 +540,7 @@ int Curl_resolv_timeout(struct connectdata *conn,
|
|||
unsigned int prev_alarm=0;
|
||||
struct SessionHandle *data = conn->data;
|
||||
#endif /* USE_ALARM_TIMEOUT */
|
||||
|
||||
int rc = CURLRESOLV_ERROR; /* error by default */
|
||||
int rc;
|
||||
|
||||
*entry = NULL;
|
||||
|
||||
|
|
@ -562,7 +561,7 @@ int Curl_resolv_timeout(struct connectdata *conn,
|
|||
if(sigsetjmp(curl_jmpenv, 1)) {
|
||||
/* this is coming from a siglongjmp() after an alarm signal */
|
||||
failf(data, "name lookup timed out");
|
||||
return rc;
|
||||
return CURLRESOLV_ERROR;
|
||||
}
|
||||
|
||||
/*************************************************************
|
||||
|
|
|
|||
|
|
@ -591,6 +591,9 @@ http_output_auth(struct connectdata *conn,
|
|||
if(result)
|
||||
return result;
|
||||
}
|
||||
#else
|
||||
(void)request;
|
||||
(void)path;
|
||||
#endif
|
||||
if(auth) {
|
||||
infof(data, "Proxy auth using %s with user '%s'\n",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue