diff options
author | Daniel Stenberg <daniel@haxx.se> | 2014-03-03 08:39:25 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2014-03-03 08:39:25 +0100 |
commit | 6f416fa4629e1f348d14ac5bc9ae8f4c65d7a259 (patch) | |
tree | 992278a2b224da68f2f85092ab750ae924f8082d /lib/vtls | |
parent | 420d9ff3ebeec043d38b2818b61f074194a475ba (diff) |
NSS: avoid compiler warnings when built without http2 support
Diffstat (limited to 'lib/vtls')
-rw-r--r-- | lib/vtls/nss.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/vtls/nss.c b/lib/vtls/nss.c index c784109f7..8e8a41ec0 100644 --- a/lib/vtls/nss.c +++ b/lib/vtls/nss.c @@ -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 } |