mirror of
https://github.com/curl/curl.git
synced 2026-06-05 09:04:15 +03:00
NSS: avoid compiler warnings when built without http2 support
This commit is contained in:
parent
420d9ff3eb
commit
6f416fa462
1 changed files with 4 additions and 2 deletions
|
|
@ -614,9 +614,8 @@ static SECStatus nss_auth_cert_hook(void *arg, PRFileDesc *fd, PRBool checksig,
|
|||
*/
|
||||
static void HandshakeCallback(PRFileDesc *sock, void *arg)
|
||||
{
|
||||
struct connectdata *conn = (struct connectdata*) arg;
|
||||
|
||||
#ifdef USE_NGHTTP2
|
||||
struct connectdata *conn = (struct connectdata*) arg;
|
||||
unsigned int buflenmax = 50;
|
||||
unsigned char buf[50];
|
||||
unsigned int buflen;
|
||||
|
|
@ -653,6 +652,9 @@ static void HandshakeCallback(PRFileDesc *sock, void *arg)
|
|||
conn->negnpn = NPN_HTTP1_1;
|
||||
}
|
||||
}
|
||||
#else
|
||||
(void)sock;
|
||||
(void)arg;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue