From: Victor Stinner Date: Wed, 20 Apr 2011 10:23:26 +0000 (+0200) Subject: Issue #11223: fix compiler warnings X-Git-Tag: v3.3.0a1~2546 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e07f522c7f570321ef2c069f5fe8b51a5ddb5a7f;p=thirdparty%2FPython%2Fcpython.git Issue #11223: fix compiler warnings --- diff --git a/Python/thread.c b/Python/thread.c index 5213a725aed9..1f15a22e2fc0 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)