From 7c91b48f0e80266cf7491c2bb7d8aabc12362643 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 13 Jun 2017 09:01:24 +0200 Subject: common: Fix -Wswitch warning. * common/compliance.c (gnupg_digest_is_allowed): Don't include GCRY_MD_WHIRLPOOL because it is not a digest_algo_t. -- Note that Whirlpool is not used anywhere in gpg or gpgsm. Signed-off-by: Werner Koch --- common/compliance.c | 1 - 1 file changed, 1 deletion(-) diff --git a/common/compliance.c b/common/compliance.c index 4078004a9..b19112c3a 100644 --- a/common/compliance.c +++ b/common/compliance.c @@ -432,7 +432,6 @@ gnupg_digest_is_allowed (enum gnupg_compliance_mode compliance, int producer, case DIGEST_ALGO_RMD160: return ! producer; case DIGEST_ALGO_MD5: - case GCRY_MD_WHIRLPOOL: return ! producer && module == GNUPG_MODULE_NAME_GPGSM; default: return 0; -- cgit v1.2.3