summaryrefslogtreecommitdiffstats
path: root/Modules/_ssl.c
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-04-14 13:48:48 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-04-14 13:48:48 (GMT)
commitdfcb04119521a5594222f4b3ef11916457219e38 (patch)
tree898cd9116ac4cbaac0b1e645ff31a464817d6b6e /Modules/_ssl.c
parentd6117a4296e129d4cd1525da1a611eca85fff081 (diff)
downloadcpython-dfcb04119521a5594222f4b3ef11916457219e38.zip
cpython-dfcb04119521a5594222f4b3ef11916457219e38.tar.gz
cpython-dfcb04119521a5594222f4b3ef11916457219e38.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 d2b6500..1117b55 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)