mirror of
https://github.com/moparisthebest/curl
synced 2024-11-11 12:05:06 -05:00
fix compiler warnings for SSL-disabled builds
This commit is contained in:
parent
1c0224be42
commit
2b280bcc69
@ -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…
Reference in New Issue
Block a user