From: Daniel Stenberg Date: Mon, 3 Mar 2014 07:39:25 +0000 (+0100) Subject: NSS: avoid compiler warnings when built without http2 support X-Git-Tag: curl-7_36_0~53 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6f416fa4629e1f348d14ac5bc9ae8f4c65d7a259;p=thirdparty%2Fcurl.git NSS: avoid compiler warnings when built without http2 support --- diff --git a/lib/vtls/nss.c b/lib/vtls/nss.c index c784109f73..8e8a41ec07 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 }