Allow cc to detect missing cases in a switch.
authorWerner Koch <wk@gnupg.org>
Tue, 10 May 2016 08:27:54 +0000 (10:27 +0200)
committerWerner Koch <wk@gnupg.org>
Tue, 10 May 2016 08:27:54 +0000 (10:27 +0200)
* 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@gnupg.org>
src/delete.c

index d20a5bf..d7fdf50 100644 (file)
@@ -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)
     {