Skip to content

Commit bb3515d

Browse files
committed
Make PyMutex static and get rid of initialization
1 parent 7999da3 commit bb3515d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/_imagingft.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ struct {
8383

8484
static FT_Library library;
8585
#ifdef Py_GIL_DISABLED
86-
PyMutex ft_library_mutex;
86+
static PyMutex ft_library_mutex;
8787
#endif
8888

8989
typedef struct {
@@ -1648,7 +1648,6 @@ PyInit__imagingft(void) {
16481648
}
16491649

16501650
#ifdef Py_GIL_DISABLED
1651-
ft_library_mutex = (PyMutex){0};
16521651
PyUnstable_Module_SetGIL(m, Py_MOD_GIL_NOT_USED);
16531652
#endif
16541653

0 commit comments

Comments
 (0)