g10: avoid warning when --disable-tofu

If configured with --disable-tofu, we see compiler warnings about an
unused variable.  This should remove those warnings.
This commit is contained in:
Daniel Kahn Gillmor 2017-01-04 08:31:06 -05:00
parent 588121c158
commit 38671cfe5a
1 changed files with 1 additions and 1 deletions

View File

@ -1002,9 +1002,9 @@ tdb_get_validity_core (ctrl_t ctrl,
ulong recno;
#ifdef USE_TOFU
unsigned int tofu_validity = TRUST_UNKNOWN;
int free_kb = 0;
#endif
unsigned int validity = TRUST_UNKNOWN;
int free_kb = 0;
if (kb && pk)
log_assert (keyid_cmp (pk_main_keyid (pk),