aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-02-16 19:33:22 +0100
committerDaniel Stenberg <daniel@haxx.se>2011-02-16 19:34:04 +0100
commitc3a6116dc934d053d89d1eb3476fbc30d19d62ce (patch)
tree7e1d545d4215f3c2bc5a726af824038438897323
parentf19ace8d33e468969d3329e6bb17d6c032147e91 (diff)
nss_load_key: fix unused variable warning
-rw-r--r--lib/nss.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/nss.c b/lib/nss.c
index 5b648cdac..e115ac912 100644
--- a/lib/nss.c
+++ b/lib/nss.c
@@ -537,6 +537,7 @@ static int nss_load_key(struct connectdata *conn, int sockindex,
PK11SlotInfo *slot;
SECStatus status;
struct ssl_connect_data *ssl = conn->ssl;
+ (void)sockindex; /* unused */
if(CURLE_OK != nss_create_object(ssl, CKO_PRIVATE_KEY, key_file, FALSE)) {
PR_SetError(SEC_ERROR_BAD_KEY, 0);
@@ -561,6 +562,7 @@ static int nss_load_key(struct connectdata *conn, int sockindex,
*/
(void)conn; /* unused */
(void)key_file; /* unused */
+ (void)sockindex; /* unused */
return 0;
#endif
}