From 3e6e1aed949a4483fc38607e443b5c8b715aca3b Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 21 Nov 2011 13:06:00 -0800 Subject: Fix a bunch of "warning: variable ‘XXXX’ set but not used [-Wunused-but-set-variable]" warnings from the new gcc. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Autobuild-User: Jeremy Allison Autobuild-Date: Mon Nov 21 23:39:08 CET 2011 on sn-devel-104 --- auth/credentials/credentials_krb5.c | 4 ++-- auth/credentials/credentials_secrets.c | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'auth/credentials') diff --git a/auth/credentials/credentials_krb5.c b/auth/credentials/credentials_krb5.c index 7130e4164d..1b7be3f63c 100644 --- a/auth/credentials/credentials_krb5.c +++ b/auth/credentials/credentials_krb5.c @@ -432,8 +432,8 @@ _PUBLIC_ void cli_credentials_invalidate_ccache(struct cli_credentials *cred, static int free_gssapi_creds(struct gssapi_creds_container *gcc) { - OM_uint32 min_stat, maj_stat; - maj_stat = gss_release_cred(&min_stat, &gcc->creds); + OM_uint32 min_stat; + (void)gss_release_cred(&min_stat, &gcc->creds); return 0; } diff --git a/auth/credentials/credentials_secrets.c b/auth/credentials/credentials_secrets.c index d86032a564..bc08d9da9a 100644 --- a/auth/credentials/credentials_secrets.c +++ b/auth/credentials/credentials_secrets.c @@ -55,7 +55,6 @@ _PUBLIC_ NTSTATUS cli_credentials_set_secrets(struct cli_credentials *cred, const char *machine_account; const char *password; - const char *old_password; const char *domain; const char *realm; enum netr_SchannelType sct; @@ -99,7 +98,6 @@ _PUBLIC_ NTSTATUS cli_credentials_set_secrets(struct cli_credentials *cred, } password = ldb_msg_find_attr_as_string(msg, "secret", NULL); - old_password = ldb_msg_find_attr_as_string(msg, "priorSecret", NULL); machine_account = ldb_msg_find_attr_as_string(msg, "samAccountName", NULL); -- cgit