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 */
RAISES_NEG static int
static int
lobject_close_locked(lobjectObject *self, char **error)
{
int retvalue;

View File

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