From f8b70d6a73171ecc43b73f5b1f3e7da09ba942d7 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 1 Oct 2018 19:13:30 +0200 Subject: [PATCH] pki_crypto: Mark iqmp as unused Signed-off-by: Andreas Schneider --- include/libssh/priv.h | 2 ++ src/pki_crypto.c | 1 + 2 files changed, 3 insertions(+) diff --git a/include/libssh/priv.h b/include/libssh/priv.h index e5ba96fe..01659411 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -302,6 +302,8 @@ int ssh_connector_remove_event(ssh_connector connector); void explicit_bzero(void *s, size_t n); #endif /* !HAVE_EXPLICIT_BZERO */ +#define UNUSED(x) (void)(x) + /** * This is a hack to fix warnings. The idea is to use this everywhere that we * get the "discarding const" warning by the compiler. That doesn't actually diff --git a/src/pki_crypto.c b/src/pki_crypto.c index c36425d7..3775d123 100644 --- a/src/pki_crypto.c +++ b/src/pki_crypto.c @@ -1053,6 +1053,7 @@ int pki_privkey_build_rsa(ssh_key key, bn = ssh_make_string_bn(n); be = ssh_make_string_bn(e); bd = ssh_make_string_bn(d); + UNUSED(iqmp); /*biqmp = ssh_make_string_bn(iqmp);*/ bp = ssh_make_string_bn(p); bq = ssh_make_string_bn(q);