projects
/
folly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a61b67
)
Add (void)ssl back to SSLContext for -Wunused-parameter
author
Michael Lee
<mzlee@fb.com>
Thu, 28 Jan 2016 18:52:42 +0000
(10:52 -0800)
committer
facebook-github-bot-0
<folly-bot@fb.com>
Thu, 28 Jan 2016 19:20:22 +0000
(11:20 -0800)
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
folly/io/async/SSLContext.cpp
patch
|
blob
|
history
diff --git
a/folly/io/async/SSLContext.cpp
b/folly/io/async/SSLContext.cpp
index 788491c0ec1369de2684c93f5b77d2b2ab36d01c..19c0aa53885fe10dce115b2b72c660e1f48a7b40 100644
(file)
--- a/
folly/io/async/SSLContext.cpp
+++ b/
folly/io/async/SSLContext.cpp
@@
-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() "