From: Daniele Varrazzo Date: Tue, 14 Mar 2023 18:36:20 +0000 (+0100) Subject: fix(c): add type cast to notice receiver callback X-Git-Tag: pool-3.1.7~6^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0185d886756c59038d205a2f94a5722801762570;p=thirdparty%2Fpsycopg.git fix(c): add type cast to notice receiver callback Necessary starting from Cython 3.0b1 --- diff --git a/psycopg_c/psycopg_c/pq/pgconn.pyx b/psycopg_c/psycopg_c/pq/pgconn.pyx index 5c5a91129..c6ca22b39 100644 --- a/psycopg_c/psycopg_c/pq/pgconn.pyx +++ b/psycopg_c/psycopg_c/pq/pgconn.pyx @@ -35,7 +35,8 @@ cdef class PGconn: cdef PGconn rv = PGconn.__new__(PGconn) rv._pgconn_ptr = ptr - libpq.PQsetNoticeReceiver(ptr, notice_receiver, rv) + libpq.PQsetNoticeReceiver( + ptr, notice_receiver, rv) return rv def __cinit__(self):