src/ssl.c: in wolfSSL_SESSION_has_ticket(), add (void)sess if !defined(HAVE_SESSION_TICKET), to fix -Wunused-parameter.

This commit is contained in:
Daniel Pouzzner
2022-01-08 02:39:50 -06:00
parent ff0eb5a41e
commit 56c28ff307

View File

@ -32074,6 +32074,8 @@ int wolfSSL_SESSION_has_ticket(const WOLFSSL_SESSION* sess)
return WOLFSSL_SUCCESS;
}
}
#else
(void)sess;
#endif
return WOLFSSL_FAILURE;
}