[Pkg-gnupg-commit] [gnupg2] 34/116: g10: avoid warning when --disable-tofu
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Tue Jan 24 04:40:51 UTC 2017
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch master
in repository gnupg2.
commit 38671cfe5a2a40bb991619f4cb992c42b5f1e8cd
Author: Daniel Kahn Gillmor <dkg at fifthhorseman.net>
Date: Wed Jan 4 08:31:06 2017 -0500
g10: avoid warning when --disable-tofu
If configured with --disable-tofu, we see compiler warnings about an
unused variable. This should remove those warnings.
---
g10/trustdb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/g10/trustdb.c b/g10/trustdb.c
index d402cb2..c113b7e 100644
--- a/g10/trustdb.c
+++ b/g10/trustdb.c
@@ -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),
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list