diff options
author | Werner Koch <[email protected]> | 2021-05-04 08:45:30 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2021-05-04 08:45:30 +0000 |
commit | b410c95fe95316ed4aaf00b0461c56007aa27b2b (patch) | |
tree | a79d99e77b8d188fbee1d6823c559688995753f6 | |
parent | scd: Fix possible PC/SC removed card problem (diff) | |
download | gnupg-b410c95fe95316ed4aaf00b0461c56007aa27b2b.tar.gz gnupg-b410c95fe95316ed4aaf00b0461c56007aa27b2b.zip |
build: Silence two compiler warnings.
--
-rw-r--r-- | g10/keylist.c | 2 | ||||
-rw-r--r-- | tests/gpgscm/scheme.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/g10/keylist.c b/g10/keylist.c index 7deb04ddc..d8006eed1 100644 --- a/g10/keylist.c +++ b/g10/keylist.c @@ -1682,7 +1682,7 @@ list_keyblock_colon (ctrl_t ctrl, kbnode_t keyblock, char *reason_text = NULL; char *reason_comment = NULL; size_t reason_commentlen; - int reason_code; + int reason_code = 0; /* init to silence cc warning. */ if (sig->sig_class == 0x20 || sig->sig_class == 0x28 || sig->sig_class == 0x30) diff --git a/tests/gpgscm/scheme.c b/tests/gpgscm/scheme.c index b4960b0a3..86d70b381 100644 --- a/tests/gpgscm/scheme.c +++ b/tests/gpgscm/scheme.c @@ -172,6 +172,7 @@ type_to_string (enum scheme_types typ) case T_FRAME: return "frame"; } assert (! "not reached"); + return "?"; } /* ADJ is enough slack to align cells in a TYPE_BITS-bit boundary */ |