diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-04-20 10:23:26 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-04-20 10:23:26 (GMT) |
commit | e07f522c7f570321ef2c069f5fe8b51a5ddb5a7f (patch) | |
tree | d74fc4262b9c85aba8d10e877f15e2a5496d2026 /Python/thread.c | |
parent | 3def7e0f01aa9706b95947fcd98c9ef693481d00 (diff) | |
download | cpython-e07f522c7f570321ef2c069f5fe8b51a5ddb5a7f.zip cpython-e07f522c7f570321ef2c069f5fe8b51a5ddb5a7f.tar.gz cpython-e07f522c7f570321ef2c069f5fe8b51a5ddb5a7f.tar.bz2 |
Issue #11223: fix compiler warnings
Diffstat (limited to 'Python/thread.c')
-rw-r--r-- | Python/thread.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/thread.c b/Python/thread.c index 5213a72..1f15a22 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) |