summaryrefslogtreecommitdiff
path: root/Python/thread.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-04-20 12:23:26 +0200
committerVictor Stinner <victor.stinner@haypocalc.com>2011-04-20 12:23:26 +0200
commit77029dd04748b0be6894feb404f7fae63c20bb5c (patch)
treeaa15cca44fde9e777816fbc378623170d90cd867 /Python/thread.c
parente546dd841199ad6788c84e503e9f2417749b9cf5 (diff)
downloadcpython-77029dd04748b0be6894feb404f7fae63c20bb5c.tar.gz
Issue #11223: fix compiler warnings
Diffstat (limited to 'Python/thread.c')
-rw-r--r--Python/thread.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/thread.c b/Python/thread.c
index 5213a725ae..1f15a22e2f 100644
--- a/Python/thread.c
+++ b/Python/thread.c
@@ -420,8 +420,11 @@ _PyThread_Info(void)
{
PyObject *info, *value;
int ret;
+#if (defined(_POSIX_THREADS) && defined(HAVE_CONFSTR) \
+ && defined(_CS_GNU_LIBPTHREAD_VERSION))
char buffer[255];
int len;
+#endif
info = PyDict_New();
if (info == NULL)