[git] GPGME - branch, master, updated. gpgme-1.6.0-14-gfc38c15

by Werner Koch cvs at cvs.gnupg.org
Tue May 10 10:29:25 CEST 2016


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GnuPG Made Easy".

The branch, master has been updated
       via  fc38c15136c87ce971a8381fa87399088dd5a3cc (commit)
      from  e79199468ac54ce4fe919603ff7bada97267174f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit fc38c15136c87ce971a8381fa87399088dd5a3cc
Author: Werner Koch <wk at gnupg.org>
Date:   Tue May 10 10:27:54 2016 +0200

    Allow cc to detect missing cases in a switch.
    
    * src/delete.c (delete_status_handler): Remove default case from a
    switch so that cc can check the use of all enum values.
    
    Signed-off-by: Werner Koch <wk at gnupg.org>

diff --git a/src/delete.c b/src/delete.c
index d20a5bf..d7fdf50 100644
--- a/src/delete.c
+++ b/src/delete.c
@@ -64,9 +64,9 @@ delete_status_handler (void *priv, gpgme_status_code_t code, char *args)
 	case DELETE_Ambiguous_Specification:
 	  return gpg_error (GPG_ERR_AMBIGUOUS_NAME);
 
-	default:
-	  return gpg_error (GPG_ERR_GENERAL);
 	}
+
+      return gpg_error (GPG_ERR_GENERAL);
     }
   else if (code == GPGME_STATUS_ERROR)
     {

-----------------------------------------------------------------------

Summary of changes:
 src/delete.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
GnuPG Made Easy
http://git.gnupg.org




More information about the Gnupg-commits mailing list