They are caused by the use of the GCC options:
-Wparentheses
-Wunused-function
Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
return ret;
}
+#if defined(HAVE_P11KIT)
static void fill_token_info(char *buf, size_t s, unsigned char *dst, size_t dstlen)
{
if (s && !gtls_ver(3,6,0))
if (s < dstlen)
memset(dst + s, ' ', dstlen - s);
}
+#endif
struct gtls_cert_info {
gnutls_x509_crl_t crl;
_("Failed to connect ESP tunnel; using HTTPS instead.\n"));
/* XX: gpst_connect does nothing if ESP is enabled and has secrets */
vpninfo->dtls_state = DTLS_NOSECRET;
- if (ret = gpst_connect(vpninfo)) {
+ if ((ret = gpst_connect(vpninfo))) {
vpninfo->quit_reason = "GPST connect failed";
return ret;
}
return ret;
}
/* XX: no need to do_reconnect, since ESP doesn't need reconnection */
- if (ret = gpst_connect(vpninfo))
+ if ((ret = gpst_connect(vpninfo)))
vpninfo->quit_reason = "GPST connect failed";
return ret;
}