]> granicus.if.org Git - curl/commitdiff
vtls: fix compiler warning for TLS backends without sha256
authorDaniel Stenberg <daniel@haxx.se>
Tue, 20 Oct 2015 06:12:44 +0000 (08:12 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 20 Oct 2015 06:12:44 +0000 (08:12 +0200)
... noticed with mbedTLS.

lib/vtls/vtls.c

index f359cd5d53d5061358764ad48eb9af68407aae84..96ff61301d5b41ea4c22e3f870e60427d53e71a4 100644 (file)
@@ -845,6 +845,8 @@ CURLcode Curl_pin_peer_pubkey(struct SessionHandle *data,
     Curl_safefree(pinkeycopy);
     return result;
   }
+#else
+  (void)data;
 #endif
 
   fp = fopen(pinnedpubkey, "rb");