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 */