From: Greg Hudson Date: Mon, 20 Dec 2010 17:48:06 +0000 (+0000) Subject: Eliminate some unused variable warnings X-Git-Tag: krb5-1.10-alpha1~627 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5934f212b7177a6f3b79b2d11bb1a1d9cd914bd3;p=krb5.git Eliminate some unused variable warnings git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24583 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/crypto/krb/dk/checksum_hmac.c b/src/lib/crypto/krb/dk/checksum_hmac.c index 5f333af57..686af8d08 100644 --- a/src/lib/crypto/krb/dk/checksum_hmac.c +++ b/src/lib/crypto/krb/dk/checksum_hmac.c @@ -38,7 +38,6 @@ krb5int_dk_checksum(const struct krb5_cksumtypes *ctp, const krb5_crypto_iov *data, size_t num_data, krb5_data *output) { - const struct krb5_keytypes *ktp; const struct krb5_enc_provider *enc = ctp->enc; krb5_error_code ret; unsigned char constantdata[K5CLENGTH]; diff --git a/src/lib/gssapi/krb5/gssapi_krb5.c b/src/lib/gssapi/krb5/gssapi_krb5.c index 50d4e36dd..cc2f8fca0 100644 --- a/src/lib/gssapi/krb5/gssapi_krb5.c +++ b/src/lib/gssapi/krb5/gssapi_krb5.c @@ -451,6 +451,7 @@ krb5_gss_inquire_cred_by_oid(OM_uint32 *minor_status, /* * gss_set_sec_context_option() methods + * (Disabled until we have something to populate the array.) */ #if 0 static struct { @@ -466,7 +467,9 @@ krb5_gss_set_sec_context_option (OM_uint32 *minor_status, const gss_OID desired_object, const gss_buffer_t value) { +#if 0 size_t i; +#endif if (minor_status == NULL) return GSS_S_CALL_INACCESSIBLE_WRITE; diff --git a/src/lib/gssapi/krb5/set_allowable_enctypes.c b/src/lib/gssapi/krb5/set_allowable_enctypes.c index 0daf8b135..fe88d1b85 100644 --- a/src/lib/gssapi/krb5/set_allowable_enctypes.c +++ b/src/lib/gssapi/krb5/set_allowable_enctypes.c @@ -70,7 +70,6 @@ gss_krb5int_set_allowable_enctypes(OM_uint32 *minor_status, OM_uint32 major_status; krb5_gss_cred_id_t cred; krb5_error_code kerr = 0; - OM_uint32 temp_status; struct krb5_gss_set_allowable_enctypes_req *req; /* Assume a failure */ diff --git a/src/plugins/kdb/ldap/libkdb_ldap/ldap_pwd_policy.c b/src/plugins/kdb/ldap/libkdb_ldap/ldap_pwd_policy.c index 0d7645383..ad60b00e8 100644 --- a/src/plugins/kdb/ldap/libkdb_ldap/ldap_pwd_policy.c +++ b/src/plugins/kdb/ldap/libkdb_ldap/ldap_pwd_policy.c @@ -198,7 +198,6 @@ populate_policy(krb5_context context, osa_policy_ent_t pol_entry) { int st = 0; - char *pol_dn; pol_entry->name = strdup(pol_name); CHECK_NULL(pol_entry->name);