fix compiler warning: unused parameter
authorYang Tse <yangsita@gmail.com>
Thu, 28 May 2009 16:18:25 +0000 (16:18 +0000)
committerYang Tse <yangsita@gmail.com>
Thu, 28 May 2009 16:18:25 +0000 (16:18 +0000)
lib/http.c
lib/tftp.c
lib/url.c

index a17c6eb..466d953 100644 (file)
@@ -524,7 +524,7 @@ output_auth_headers(struct connectdata *conn,
     &data->state.proxyneg:&data->state.negotiate;
 #endif
 
-#ifndef CURL_DISABLE_CRYPTO_AUTH
+#ifdef CURL_DISABLE_CRYPTO_AUTH
   (void)request;
   (void)path;
 #endif
index eff2a1c..51f4b87 100644 (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)
 {
   CURLcode res;
+#ifndef CURL_DISABLE_VERBOSE_STRINGS
   struct SessionHandle *data = state->conn->data;
 
   infof(data, "%s\n", "Connected for transmit");
+#endif
   state->state = TFTP_STATE_TX;
   res = tftp_set_timeouts(state);
   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)
 {
   CURLcode res;
+#ifndef CURL_DISABLE_VERBOSE_STRINGS
   struct SessionHandle *data = state->conn->data;
 
   infof(data, "%s\n", "Connected for receive");
+#endif
   state->state = TFTP_STATE_RX;
   res = tftp_set_timeouts(state);
   if(res != CURLE_OK)
index a971764..bba34ff 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -2878,6 +2878,8 @@ static CURLcode ConnectPlease(struct SessionHandle *data,
   infof(data, "About to connect() to %s%s port %d (#%d)\n",
         conn->bits.proxy?"proxy ":"",
         hostname, conn->port, conn->connectindex);
+#else
+  (void)data;
 #endif
 
   /*************************************************************