Commit 08dba571 authored by Michael Lee's avatar Michael Lee Committed by facebook-github-bot-0

Add (void)ssl back to SSLContext for -Wunused-parameter

Summary:
I'm not sure what accepted practice is to make the
-Wunused-parameter not balk.

Reviewed By: igorsugak

Differential Revision: D2874705

fb-gh-sync-id: 8765bae504fd90dfd8896857f4bf865ca8f64a8a
parent 4a61b67f
...@@ -570,13 +570,13 @@ bool SSLContext::canUseFalseStartWithCipher(const SSL_CIPHER *cipher) { ...@@ -570,13 +570,13 @@ bool SSLContext::canUseFalseStartWithCipher(const SSL_CIPHER *cipher) {
} }
#endif #endif
int SSLContext::selectNextProtocolCallback(SSL* /* ssl */, int SSLContext::selectNextProtocolCallback(SSL* ssl,
unsigned char** out, unsigned char** out,
unsigned char* outlen, unsigned char* outlen,
const unsigned char* server, const unsigned char* server,
unsigned int server_len, unsigned int server_len,
void* data) { void* data) {
(void)ssl; // Make -Wunused-parameters happy
SSLContext* ctx = (SSLContext*)data; SSLContext* ctx = (SSLContext*)data;
if (ctx->advertisedNextProtocols_.size() > 1) { if (ctx->advertisedNextProtocols_.size() > 1) {
VLOG(3) << "SSLContext::selectNextProcolCallback() " VLOG(3) << "SSLContext::selectNextProcolCallback() "
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment