chiark / gitweb /
g10: avoid warning when --disable-tofu
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Wed, 4 Jan 2017 13:31:06 +0000 (08:31 -0500)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Tue, 3 Jan 2017 20:39:52 +0000 (20:39 +0000)
If configured with --disable-tofu, we see compiler warnings about an
unused variable.  This should remove those warnings.

(cherry picked from commit 38671cfe5a2a40bb991619f4cb992c42b5f1e8cd)

Gbp-Pq: Name 0022-g10-avoid-warning-when-disable-tofu.patch

g10/trustdb.c

index d402cb2..c113b7e 100644 (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),