- (bal) [auth-passwd.c auth1.c] Clean up unused variables.
diff --git a/auth-passwd.c b/auth-passwd.c
index da247df..7a68e05 100644
--- a/auth-passwd.c
+++ b/auth-passwd.c
@@ -64,7 +64,9 @@
 {
 	struct passwd * pw = authctxt->pw;
 	int ok = authctxt->valid;
+#if defined(USE_SHADOW) && defined(HAS_SHADOW_EXPIRE)
 	static int expire_checked = 0;
+#endif
 
 #ifndef HAVE_CYGWIN
 	if (pw->pw_uid == 0 && options.permit_root_login != PERMIT_YES)