diff options
author | Sam Gross <colesbury@gmail.com> | 2024-03-05 03:06:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-05 03:06:21 (GMT) |
commit | 58c7919d05a360f3437a204960cddbeb78a71dce (patch) | |
tree | a1ddbb7d647479a9c28d69a2eb9d284d0688b3eb /Objects | |
parent | 88b5c665ee1624af1bc5097d3eb2af090b9cabed (diff) | |
download | cpython-58c7919d05a360f3437a204960cddbeb78a71dce.zip cpython-58c7919d05a360f3437a204960cddbeb78a71dce.tar.gz cpython-58c7919d05a360f3437a204960cddbeb78a71dce.tar.bz2 |
gh-116029: Fix unused function warning on macOS (#116340)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/dictobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c index 39778df..027cff1 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -1238,10 +1238,10 @@ start: return ix; } +#ifdef Py_GIL_DISABLED static inline void ensure_shared_on_read(PyDictObject *mp) { -#ifdef Py_GIL_DISABLED if (!_Py_IsOwnedByCurrentThread((PyObject *)mp) && !IS_DICT_SHARED(mp)) { // The first time we access a dict from a non-owning thread we mark it // as shared. This ensures that a concurrent resize operation will @@ -1253,8 +1253,8 @@ ensure_shared_on_read(PyDictObject *mp) } Py_END_CRITICAL_SECTION(); } -#endif } +#endif static inline void ensure_shared_on_resize(PyDictObject *mp) |