Skip to content

Commit f88e436

Browse files
committed
add (void)b to shut up warning as error
1 parent 35f3b8e commit f88e436

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Modules/_io/bytesio.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,17 +1195,14 @@ bytesiobuf_getbuffer(PyObject *op, Py_buffer *view, int flags)
11951195
return -1;
11961196
}
11971197

1198-
#ifdef Py_GIL_DISABLED
11991198
bytesiobuf *obj = bytesiobuf_CAST(op);
12001199
bytesio *b = bytesio_CAST(obj->source);
1200+
(void)b;
12011201
int ret;
12021202
Py_BEGIN_CRITICAL_SECTION(b);
12031203
ret = bytesiobuf_getbuffer_lock_held(op, view, flags);
12041204
Py_END_CRITICAL_SECTION();
12051205
return ret;
1206-
#else
1207-
return bytesiobuf_getbuffer_lock_held(op, view, flags);
1208-
#endif
12091206
}
12101207

12111208
static void

0 commit comments

Comments
 (0)