Add (void)ssl back to SSLContext for -Wunused-parameter
[folly.git] / folly / io / async / SSLContext.cpp
index 788491c0ec1369de2684c93f5b77d2b2ab36d01c..19c0aa53885fe10dce115b2b72c660e1f48a7b40 100644 (file)
@@ -570,13 +570,13 @@ bool SSLContext::canUseFalseStartWithCipher(const SSL_CIPHER *cipher) {
 }
 #endif
 
-int SSLContext::selectNextProtocolCallback(SSL* /* ssl */,
+int SSLContext::selectNextProtocolCallback(SSL* ssl,
                                            unsigned char** out,
                                            unsigned char* outlen,
                                            const unsigned char* server,
                                            unsigned int server_len,
                                            void* data) {
-
+  (void)ssl; // Make -Wunused-parameters happy
   SSLContext* ctx = (SSLContext*)data;
   if (ctx->advertisedNextProtocols_.size() > 1) {
     VLOG(3) << "SSLContext::selectNextProcolCallback() "