Cleanup of gcc fake positives in lobject

This commit is contained in:
Daniele Varrazzo 2019-01-22 17:10:15 +00:00
parent 2aedbedcbf
commit de1b816f83
2 changed files with 3 additions and 2 deletions

View File

@ -236,7 +236,7 @@ lobject_open(lobjectObject *self, connectionObject *conn,
/* lobject_close - close an existing lo */ /* lobject_close - close an existing lo */
RAISES_NEG static int static int
lobject_close_locked(lobjectObject *self, char **error) lobject_close_locked(lobjectObject *self, char **error)
{ {
int retvalue; int retvalue;

View File

@ -96,6 +96,7 @@ psyco_lobj_write(lobjectObject *self, PyObject *args)
} }
if (-1 == Bytes_AsStringAndSize(data, &buffer, &len)) { if (-1 == Bytes_AsStringAndSize(data, &buffer, &len)) {
FAKE_RAISE(); /* issue davidmalcolm/gcc-python-plugin#75 */
goto exit; goto exit;
} }
@ -357,7 +358,7 @@ lobject_setup(lobjectObject *self, connectionObject *conn,
} }
Py_INCREF((PyObject*)conn); Py_INCREF((PyObject*)conn);
self->conn = conn; self->conn = (connectionObject *)TO_STATE((PyObject *)conn);
self->mark = conn->mark; self->mark = conn->mark;
self->fd = -1; self->fd = -1;