From 7cbb7d62c6ca4902297d594e8a78d5a12a834ebe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sun, 19 Jul 2020 11:05:44 +0200 Subject: [PATCH] homectl: fix warning about unused function MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ../src/home/homectl-pkcs11.c:19:13: warning: ‘pkcs11_callback_data_release’ defined but not used [-Wunused-function] 19 | static void pkcs11_callback_data_release(struct pkcs11_callback_data *data) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- src/home/homectl-pkcs11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/home/homectl-pkcs11.c b/src/home/homectl-pkcs11.c index 830aafaab14..f4253ed7bf2 100644 --- a/src/home/homectl-pkcs11.c +++ b/src/home/homectl-pkcs11.c @@ -16,12 +16,12 @@ struct pkcs11_callback_data { X509 *cert; }; +#if HAVE_P11KIT static void pkcs11_callback_data_release(struct pkcs11_callback_data *data) { erase_and_free(data->pin_used); X509_free(data->cert); } -#if HAVE_P11KIT static int pkcs11_callback( CK_FUNCTION_LIST *m, CK_SESSION_HANDLE session, -- 2.47.3