1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-09-01 06:21:57 +03:00

Silence unused var warnings (#329)

Silence warnings about unused variables in this test
This commit is contained in:
Will Cosgrove
2019-03-19 14:14:34 -07:00
parent 1e2b63cbff
commit c9008ca66d

View File

@@ -57,6 +57,10 @@ int test(LIBSSH2_SESSION *session)
int type;
size_t len;
/* these are the host keys under test, they are currently unused */
(void)EXPECTED_RSA_HOSTKEY;
(void)EXPECTED_ECDSA_HOSTKEY;
const char *hostkey = libssh2_session_hostkey(session, &len, &type);
if(hostkey == NULL) {
print_last_session_error("libssh2_session_hostkey");