1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

fix compiler warning: unused parameter

This commit is contained in:
Yang Tse 2009-05-28 16:18:25 +00:00
parent 9418c56fd3
commit f13cbcf175
3 changed files with 7 additions and 1 deletions

View File

@ -524,7 +524,7 @@ output_auth_headers(struct connectdata *conn,
&data->state.proxyneg:&data->state.negotiate; &data->state.proxyneg:&data->state.negotiate;
#endif #endif
#ifndef CURL_DISABLE_CRYPTO_AUTH #ifdef CURL_DISABLE_CRYPTO_AUTH
(void)request; (void)request;
(void)path; (void)path;
#endif #endif

View File

@ -411,9 +411,11 @@ static size_t tftp_option_add(tftp_state_data_t *state, size_t csize,
static CURLcode tftp_connect_for_tx(tftp_state_data_t *state, tftp_event_t event) static CURLcode tftp_connect_for_tx(tftp_state_data_t *state, tftp_event_t event)
{ {
CURLcode res; CURLcode res;
#ifndef CURL_DISABLE_VERBOSE_STRINGS
struct SessionHandle *data = state->conn->data; struct SessionHandle *data = state->conn->data;
infof(data, "%s\n", "Connected for transmit"); infof(data, "%s\n", "Connected for transmit");
#endif
state->state = TFTP_STATE_TX; state->state = TFTP_STATE_TX;
res = tftp_set_timeouts(state); res = tftp_set_timeouts(state);
if(res != CURLE_OK) if(res != CURLE_OK)
@ -424,9 +426,11 @@ static CURLcode tftp_connect_for_tx(tftp_state_data_t *state, tftp_event_t event
static CURLcode tftp_connect_for_rx(tftp_state_data_t *state, tftp_event_t event) static CURLcode tftp_connect_for_rx(tftp_state_data_t *state, tftp_event_t event)
{ {
CURLcode res; CURLcode res;
#ifndef CURL_DISABLE_VERBOSE_STRINGS
struct SessionHandle *data = state->conn->data; struct SessionHandle *data = state->conn->data;
infof(data, "%s\n", "Connected for receive"); infof(data, "%s\n", "Connected for receive");
#endif
state->state = TFTP_STATE_RX; state->state = TFTP_STATE_RX;
res = tftp_set_timeouts(state); res = tftp_set_timeouts(state);
if(res != CURLE_OK) if(res != CURLE_OK)

View File

@ -2878,6 +2878,8 @@ static CURLcode ConnectPlease(struct SessionHandle *data,
infof(data, "About to connect() to %s%s port %d (#%d)\n", infof(data, "About to connect() to %s%s port %d (#%d)\n",
conn->bits.proxy?"proxy ":"", conn->bits.proxy?"proxy ":"",
hostname, conn->port, conn->connectindex); hostname, conn->port, conn->connectindex);
#else
(void)data;
#endif #endif
/************************************************************* /*************************************************************