aboutsummaryrefslogtreecommitdiffstats
path: root/g10/trustdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/trustdb.c')
-rw-r--r--g10/trustdb.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/g10/trustdb.c b/g10/trustdb.c
index 386796c68..fbb806d85 100644
--- a/g10/trustdb.c
+++ b/g10/trustdb.c
@@ -992,9 +992,16 @@ tdb_get_validity_core (PKT_public_key *pk, PKT_user_id *uid,
TRUSTREC trec, vrec;
gpg_error_t err;
ulong recno;
+#ifdef USE_TOFU
unsigned int tofu_validity = TRUST_UNKNOWN;
+#endif
unsigned int validity = TRUST_UNKNOWN;
+#ifndef USE_TOFU
+ (void)sig;
+ (void)may_ask;
+#endif
+
init_trustdb ();
/* If we have no trustdb (which also means it has not been created)