diff options
author | Werner Koch <wk@gnupg.org> | 2015-10-18 20:07:26 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2015-10-18 20:08:38 +0200 |
commit | 558bcd43ae0a841cf1e58e06f5d72a19d5bc70cd (patch) | |
tree | e305dcf37ab7febf1dc7c72a774b5af9426963e8 /g10/tofu.h | |
parent | common: Avoid warning about const char ** assignment. (diff) | |
download | gnupg2-558bcd43ae0a841cf1e58e06f5d72a19d5bc70cd.tar.xz gnupg2-558bcd43ae0a841cf1e58e06f5d72a19d5bc70cd.zip |
gpg: Fix harmless compiler warnings.
* g10/tofu.h (_tofu_GET_POLICY_ERROR): New. This avoids warnings
about undefined enum values in a switch.
* g10/trustdb.h (_tofu_GET_TRUST_ERROR): New.
* g10/tofu.c (TIME_AGO_FUTURE_IGNORE): Move to the top.
(opendbs): Avoid compiler warning (use braces).
(GET_POLICY_ERROR): Replace define by enum _tofu_GET_POLICY_ERROR.
(get_policy): Remove assert.
(GET_TRUST_ERROR): Replace by _tofu_GET_TRUST_ERROR macro.
(show_statistics): Undef MIN_SECS et al. after use.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'g10/tofu.h')
-rw-r--r-- | g10/tofu.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/g10/tofu.h b/g10/tofu.h index 75166849e..b0fcc5bc0 100644 --- a/g10/tofu.h +++ b/g10/tofu.h @@ -56,7 +56,11 @@ enum tofu_policy binding (by selecting accept once or reject once). The next time we see this binding, we should ask the user what to do. */ - TOFU_POLICY_ASK = 5 + TOFU_POLICY_ASK = 5, + + + /* Privat evalue used only within tofu.c. */ + _tofu_GET_POLICY_ERROR = 100 }; /* Return a string representation of a trust policy. Returns "???" if |