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@gnupg.org>
This commit is contained in:
Werner Koch 2016-05-10 10:27:54 +02:00
parent e79199468a
commit fc38c15136
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View 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)
{