From: Yang Tse Date: Mon, 23 May 2011 10:57:23 +0000 (+0200) Subject: compiler warning: fix X-Git-Tag: curl-7_21_7~93 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bed6b89a2fb4f8a1279adc6a8f823b3e2d8a726f;p=curl compiler warning: fix Fix compiler warning: unused variable 'data' --- diff --git a/lib/ssh.c b/lib/ssh.c index 7f42c7ea8..a26b51be4 100644 --- a/lib/ssh.c +++ b/lib/ssh.c @@ -509,10 +509,11 @@ static int sshkeycallback(CURL *easy, static CURLcode ssh_knownhost(struct connectdata *conn) { - struct SessionHandle *data = conn->data; CURLcode result = CURLE_OK; #ifdef HAVE_LIBSSH2_KNOWNHOST_API + struct SessionHandle *data = conn->data; + if(data->set.str[STRING_SSH_KNOWNHOSTS]) { /* we're asked to verify the host against a file */ struct ssh_conn *sshc = &conn->proto.sshc;