[Pkg-gnupg-commit] [gpgme] 70/412: Allow cc to detect missing cases in a switch.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Thu Sep 22 21:26:17 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch master
in repository gpgme.
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>
---
src/delete.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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)
{
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gpgme.git
More information about the Pkg-gnupg-commit
mailing list