From 549998d1d057839ffe1be931bf4c46c7b4b94fab Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 7 May 2020 14:04:43 +0200 Subject: [PATCH] sm: Fix annoying warning about not yet implemented --attribute. -- Signed-off-by: Werner Koch --- sm/sign.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sm/sign.c b/sm/sign.c index e3f1bd8bd..caf96bfa4 100644 --- a/sm/sign.c +++ b/sm/sign.c @@ -752,7 +752,8 @@ gpgsm_sign (ctrl_t ctrl, certlist_t signerlist, goto leave; } #else - log_info ("Note: option --attribute is ignored by this version\n"); + if (opt.attributes) + log_info ("Note: option --attribute is ignored by this version\n"); #endif /*ksba >= 1.4.0 */