Skip to content

Commit 8df2972

Browse files
Squash compilation warning.
1 parent d633f86 commit 8df2972

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/oracledb/impl/thick/subscr.pyx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#------------------------------------------------------------------------------
2-
# Copyright (c) 2020, 2022, Oracle and/or its affiliates.
2+
# Copyright (c) 2020, 2024, Oracle and/or its affiliates.
33
#
44
# This software is dual-licensed to you under the Universal Permissive License
55
# (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl and Apache License
@@ -29,7 +29,8 @@
2929
# thick_impl.pyx).
3030
#------------------------------------------------------------------------------
3131

32-
cdef void _callback_handler(void* context, dpiSubscrMessage* message) with gil:
32+
cdef int _callback_handler(void* context,
33+
dpiSubscrMessage* message) except -1 with gil:
3334
cdef:
3435
object subscr = <object> context
3536
ThickSubscrImpl subscr_impl
@@ -156,7 +157,7 @@ cdef class ThickSubscrImpl(BaseSubscrImpl):
156157
params.name = name_buf.ptr
157158
params.nameLength = name_buf.length
158159
if self.callback is not None:
159-
params.callback = _callback_handler
160+
params.callback = <dpiSubscrCallback> _callback_handler
160161
params.callbackContext = <void*> subscr
161162
params.ipAddress = ip_address_buf.ptr
162163
params.ipAddressLength = ip_address_buf.length

0 commit comments

Comments
 (0)