]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #11223: fix compiler warnings
authorVictor Stinner <victor.stinner@haypocalc.com>
Wed, 20 Apr 2011 10:23:26 +0000 (12:23 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Wed, 20 Apr 2011 10:23:26 +0000 (12:23 +0200)
Python/thread.c

index 5213a725aed97289b8c7267ce4efbcc07aa7d337..1f15a22e2fc0d67c9683e08b5427bda58c790985 100644 (file)
@@ -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)