aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/libssh/priv.h2
-rw-r--r--src/pki_crypto.c1
2 files changed, 3 insertions, 0 deletions
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);