diff --git a/psycopg/adapter_asis.c b/psycopg/adapter_asis.c index e11caa04..8a5cd068 100644 --- a/psycopg/adapter_asis.c +++ b/psycopg/adapter_asis.c @@ -34,6 +34,9 @@ /** the AsIs object **/ +#if PY_MAJOR_VERSION > 2 +IGNORE_REFCOUNT /* bug davidmalcolm/gcc-python-plugin#171 */ +#endif static PyObject * asis_getquoted(asisObject *self, PyObject *args) {