summaryrefslogtreecommitdiffstats
path: root/Modules/_ssl.c
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-04-14 13:49:21 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-04-14 13:49:21 (GMT)
commit2c164b738dc5563c5ae18edafeeaa3141944b5ae (patch)
treebb9450bd690b0e1ba848df12e4c86db3165146f7 /Modules/_ssl.c
parent23c5cbbddec66063f1cc44cc06045a39a119b3d6 (diff)
parentdfcb04119521a5594222f4b3ef11916457219e38 (diff)
downloadcpython-2c164b738dc5563c5ae18edafeeaa3141944b5ae.zip
cpython-2c164b738dc5563c5ae18edafeeaa3141944b5ae.tar.gz
cpython-2c164b738dc5563c5ae18edafeeaa3141944b5ae.tar.bz2
Fix unused variable 'libver' warning in Modules/_ssl.c
It can be seen on various buildbots like 3.x.cea-indiana-amd64 and 3.x.murray-snowleopard: /export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Modules/_ssl.c:2227: warning: unused variable 'libver' /Users/buildbot/buildarea/3.x.murray-snowleopard/build/Modules/_ssl.c:2227: warning: unused variable ‘libver’
Diffstat (limited to 'Modules/_ssl.c')
-rw-r--r--Modules/_ssl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index 994198c..ead5b0e 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -2224,7 +2224,9 @@ _ssl__SSLContext_impl(PyTypeObject *type, int proto_version)
PySSLContext *self;
long options;
SSL_CTX *ctx = NULL;
+#if defined(SSL_MODE_RELEASE_BUFFERS)
unsigned long libver;
+#endif
PySSL_BEGIN_ALLOW_THREADS
if (proto_version == PY_SSL_VERSION_TLS1)