Skip to content

Commit 77029dd

Browse files
author
Victor Stinner
committed
Issue #11223: fix compiler warnings
1 parent e546dd8 commit 77029dd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Python/thread.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,8 +420,11 @@ _PyThread_Info(void)
420420
{
421421
PyObject *info, *value;
422422
int ret;
423+
#if (defined(_POSIX_THREADS) && defined(HAVE_CONFSTR) \
424+
&& defined(_CS_GNU_LIBPTHREAD_VERSION))
423425
char buffer[255];
424426
int len;
427+
#endif
425428

426429
info = PyDict_New();
427430
if (info == NULL)

0 commit comments

Comments
 (0)