Skip to content

Commit e3995e0

Browse files
committed
Add #ifdef to avoid unused-function warning on other platforms
1 parent c6d9809 commit e3995e0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Python/pylifecycle.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2724,6 +2724,7 @@ init_sys_streams(PyThreadState *tstate)
27242724
}
27252725

27262726

2727+
#ifdef __ANDROID__
27272728
/* Redirecting streams to the log is a convenience, but won't be critical for
27282729
every app, so failures of this function are non-fatal. */
27292730
static void
@@ -2744,6 +2745,7 @@ init_android_streams(PyThreadState *tstate)
27442745
}
27452746
Py_XDECREF(_android_support);
27462747
}
2748+
#endif
27472749

27482750

27492751
static void

0 commit comments

Comments
 (0)