From b410c95fe95316ed4aaf00b0461c56007aa27b2b Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 4 May 2021 10:45:30 +0200 Subject: [PATCH] build: Silence two compiler warnings. -- --- g10/keylist.c | 2 +- tests/gpgscm/scheme.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 */