From: Ezra Peisach Date: Sun, 20 Sep 2009 22:23:52 +0000 (+0000) Subject: Clean up warnings of unused variables that have crept into the source tree.. X-Git-Tag: krb5-1.8-alpha1~344 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f5ebac8be0e07ee898131cbe82acee8ad08c6b6f;p=krb5.git Clean up warnings of unused variables that have crept into the source tree.. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22779 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/crypto/krb/keyhash_provider/k5_md5des.c b/src/lib/crypto/krb/keyhash_provider/k5_md5des.c index e9752e119..24d631706 100644 --- a/src/lib/crypto/krb/keyhash_provider/k5_md5des.c +++ b/src/lib/crypto/krb/keyhash_provider/k5_md5des.c @@ -85,7 +85,6 @@ k5_md5des_verify(const krb5_keyblock *key, krb5_keyusage usage, const krb5_data krb5_error_code ret; krb5_MD5_CTX ctx; unsigned char plaintext[CONFLENGTH+RSA_MD5_CKSUM_LENGTH]; - unsigned char *ivptr = NULL, *outptr = NULL; int compathash = 0; struct krb5_enc_provider *enc = &krb5int_enc_des; krb5_data output, iv; diff --git a/src/lib/gssapi/krb5/gssapi_krb5.c b/src/lib/gssapi/krb5/gssapi_krb5.c index 519abb860..3c1c6b8cb 100644 --- a/src/lib/gssapi/krb5/gssapi_krb5.c +++ b/src/lib/gssapi/krb5/gssapi_krb5.c @@ -403,7 +403,9 @@ krb5_gss_inquire_cred_by_oid(OM_uint32 *minor_status, { OM_uint32 major_status = GSS_S_FAILURE; krb5_gss_cred_id_t cred; +#if 0 size_t i; +#endif if (minor_status == NULL) return GSS_S_CALL_INACCESSIBLE_WRITE; diff --git a/src/lib/krb5/krb/fast.c b/src/lib/krb5/krb/fast.c index ef57e6d83..381173d5c 100644 --- a/src/lib/krb5/krb/fast.c +++ b/src/lib/krb5/krb/fast.c @@ -484,7 +484,6 @@ krb5_error_code krb5int_fast_reply_key(krb5_context context, krb5_error_code krb5int_fast_make_state( krb5_context context, struct krb5int_fast_request_state **state) { - krb5_error_code retval = 0; struct krb5int_fast_request_state *local_state ; local_state = malloc(sizeof *local_state); if (local_state == NULL) diff --git a/src/lib/krb5/krb/kfree.c b/src/lib/krb5/krb/kfree.c index 8cef95431..9f5c702e8 100644 --- a/src/lib/krb5/krb/kfree.c +++ b/src/lib/krb5/krb/kfree.c @@ -450,8 +450,6 @@ void KRB5_CALLCONV krb5_free_passwd_phrase_element(krb5_context context, passwd_phrase_element *val) { - register passwd_phrase_element **temp; - if (val == NULL) return; krb5_free_data(context, val->passwd);