...
This commit is contained in:
parent
e7986838d8
commit
067c5f25b8
@ -14,7 +14,9 @@ static char drain_buf[1024] = {0};
|
||||
|
||||
static PyObject*
|
||||
drain_read(PyObject UNUSED *self, PyObject *fd) {
|
||||
(void)read(PyLong_AsLong(fd), drain_buf, sizeof(drain_buf));
|
||||
ALLOW_UNUSED_RESULT
|
||||
read(PyLong_AsLong(fd), drain_buf, sizeof(drain_buf));
|
||||
END_ALLOW_UNUSED_RESULT
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
|
||||
@ -129,6 +129,8 @@ typedef unsigned int index_type;
|
||||
|
||||
#define START_ALLOW_CASE_RANGE _Pragma("GCC diagnostic ignored \"-Wpedantic\"")
|
||||
#define END_ALLOW_CASE_RANGE _Pragma("GCC diagnostic pop")
|
||||
#define ALLOW_UNUSED_RESULT _Pragma("GCC diagnostic ignored \"-Wunused-result\"")
|
||||
#define END_ALLOW_UNUSED_RESULT _Pragma("GCC diagnostic pop")
|
||||
|
||||
typedef struct {
|
||||
PyObject_HEAD
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user