mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-11 02:59:40 +02:00
...
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user