Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix compiler warning on GIL-ful builds.
  • Loading branch information
ZeroIntensity committed Jan 4, 2025
commit de4c4eabe421b688cf3d50d10fd14f163500a28a
3 changes: 3 additions & 0 deletions Modules/_ctypes/_ctypes.c
Original file line number Diff line number Diff line change
Expand Up @@ -3241,7 +3241,10 @@ PyObject *
PyCData_get(ctypes_state *st, PyObject *type, GETFUNC getfunc, PyObject *src,
Py_ssize_t index, Py_ssize_t size, char *adr)
{
#ifdef Py_GIL_DISABLED
// This isn't used if the GIL is enabled, so it causes a compiler warning.
Comment thread
ZeroIntensity marked this conversation as resolved.
CDataObject *cdata = (CDataObject *)src;
#endif
if (getfunc) {
LOCK_PTR(cdata);
PyObject *res = getfunc(adr, size);
Expand Down