Further annotation to run cpychecker with higher --maxtrans

This commit is contained in:
Daniele Varrazzo 2019-01-23 15:37:25 +00:00
parent 8bf9299c17
commit f9cec90912
2 changed files with 4 additions and 0 deletions

View File

@ -632,6 +632,7 @@ pq_reset(connectionObject *conn)
* The result is a new string allocated with malloc. * The result is a new string allocated with malloc.
*/ */
IGNORE_REFCOUNT /* segfault on higher --maxtrans */
char * char *
pq_get_guc_locked( pq_get_guc_locked(
connectionObject *conn, const char *param, connectionObject *conn, const char *param,
@ -1144,6 +1145,7 @@ exit:
return rv; return rv;
} }
IGNORE_REFCOUNT /* davidmalcolm/gcc-python-plugin#109 -- can't fix with TO_STATE */
static PyObject * static PyObject *
_make_column(connectionObject *conn, PGresult *pgres, int i) _make_column(connectionObject *conn, PGresult *pgres, int i)
{ {
@ -1315,6 +1317,7 @@ _read_rowcount(cursorObject *curs)
} }
} }
IGNORE_REFCOUNT /* segfault on higher --maxtrans */
static int static int
_pq_copy_in_v3(cursorObject *curs) _pq_copy_in_v3(cursorObject *curs)
{ {

View File

@ -166,6 +166,7 @@ typecast_array_tokenize(const char *str, Py_ssize_t strlength,
return res; return res;
} }
IGNORE_REFCOUNT /* davidmalcolm/gcc-python-plugin#109 -- can't fix with TO_STATE */
RAISES_NEG static int RAISES_NEG static int
typecast_array_scan(const char *str, Py_ssize_t strlength, typecast_array_scan(const char *str, Py_ssize_t strlength,
PyObject *curs, PyObject *base, PyObject *array) PyObject *curs, PyObject *base, PyObject *array)