mirror of
https://github.com/weechat/weechat.git
synced 2026-06-28 05:46:38 +02:00
relay: remove compiler warnings when gnutls is not enabled/found
This commit is contained in:
@@ -625,7 +625,9 @@ struct t_relay_client *
|
||||
relay_client_new (int sock, const char *address, struct t_relay_server *server)
|
||||
{
|
||||
struct t_relay_client *new_client;
|
||||
#ifdef HAVE_GNUTLS
|
||||
struct t_config_option *ptr_option;
|
||||
#endif
|
||||
|
||||
new_client = malloc (sizeof (*new_client));
|
||||
if (new_client)
|
||||
|
||||
@@ -53,10 +53,9 @@ gnutls_dh_params_t relay_gnutls_dh_params;
|
||||
void
|
||||
relay_network_set_ssl_cert_key (int verbose)
|
||||
{
|
||||
int ret;
|
||||
|
||||
#ifdef HAVE_GNUTLS
|
||||
char *certkey_path, *certkey_path2;
|
||||
int ret;
|
||||
|
||||
gnutls_certificate_free_credentials (relay_gnutls_x509_cred);
|
||||
gnutls_certificate_allocate_credentials (&relay_gnutls_x509_cred);
|
||||
@@ -100,6 +99,9 @@ relay_network_set_ssl_cert_key (int verbose)
|
||||
}
|
||||
free (certkey_path);
|
||||
}
|
||||
#else
|
||||
/* make C compiler happy */
|
||||
(void) verbose;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user