aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-11-30 18:29:23 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-11-30 18:33:37 +0000
commit069f63c8939a36b33a201ca9a726978ff54709cd (patch)
tree30525a8156d83fcff6b6903bbe377707985aca09
parent676f79f8d285631fc03eeaf38e0178a138d0499a (diff)
smb.c: Fixed compilation warnings
smb.c:212: warning: unused parameter 'done' smb.c:380: warning: ISO C does not allow extra ';' outside of a function smb.c:812: warning: unused parameter 'premature' smb.c:822: warning: unused parameter 'dead'
-rw-r--r--lib/smb.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/smb.c b/lib/smb.c
index efd1f5de7..5243051e0 100644
--- a/lib/smb.c
+++ b/lib/smb.c
@@ -214,6 +214,8 @@ static CURLcode smb_connect(struct connectdata *conn, bool *done)
struct smb_conn *smbc = &conn->proto.smbc;
char *slash;
+ (void) done;
+
/* Initialize the connection state */
memset(smbc, 0, sizeof(*smbc));
smbc->state = SMB_CONNECTING;
@@ -378,7 +380,7 @@ static CURLcode smb_send_negotiate(struct connectdata *conn)
const char *msg = "\x00\x0c\x00\x02NT LM 0.12";
return smb_send_message(conn, SMB_COM_NEGOTIATE, msg, 15);
-};
+}
static CURLcode smb_send_setup(struct connectdata *conn)
{
@@ -814,6 +816,8 @@ static CURLcode smb_done(struct connectdata *conn, CURLcode status,
{
struct smb_request *req = conn->data->req.protop;
+ (void) premature;
+
Curl_safefree(req->share);
Curl_safefree(conn->data->req.protop);
@@ -825,6 +829,8 @@ static CURLcode smb_disconnect(struct connectdata *conn, bool dead)
struct smb_conn *smbc = &conn->proto.smbc;
struct smb_request *req = conn->data->req.protop;
+ (void) dead;
+
Curl_safefree(smbc->domain);
Curl_safefree(smbc->send_buf);
Curl_safefree(smbc->recv_buf);