mirror of
https://github.com/curl/curl.git
synced 2026-05-17 18:26:19 +03:00
fix compiler warnings for SSL-disabled builds
This commit is contained in:
parent
1c0224be42
commit
2b280bcc69
2 changed files with 3 additions and 1 deletions
|
|
@ -609,6 +609,9 @@ bool Curl_ssl_data_pending(struct connectdata *conn,
|
|||
if(conn->ssl[connindex].handle)
|
||||
/* SSL is in use */
|
||||
return SSL_pending(conn->ssl[connindex].handle);
|
||||
#else
|
||||
(void)conn;
|
||||
(void)connindex;
|
||||
#endif
|
||||
return FALSE; /* nothing pending */
|
||||
|
||||
|
|
|
|||
|
|
@ -77,7 +77,6 @@ bool Curl_ssl_data_pending(struct connectdata *conn,
|
|||
#if !defined(USE_SSL) && !defined(SSLGEN_C)
|
||||
/* set up blank macros for none-SSL builds */
|
||||
#define Curl_ssl_close_all(x)
|
||||
#define Curl_ssl_data_pending(x,y) 0
|
||||
#endif
|
||||
|
||||
#define SSL_SHUTDOWN_TIMEOUT 10000 /* ms */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue