Skip to content

Commit

Permalink
Fix SDK build for macos
Browse files Browse the repository at this point in the history
Fixing compile error

Error compiling Cython file:
------------------------------------------------------------

from .exceptions import BrokerTimeoutError
from .exceptions import Error

LOGGER = logging.getLogger(__name__)

BallUtil.initBallSingleton(_log_callback)
                           ^
------------------------------------------------------------

src/bloomberg/bmq/_ext.pyx:38:27: Cannot assign type 'void (const char *, int, const char *, int, const char *) except * nogil' to 'void (*)(char *, int, char *, int, char *) noexcept'. Exception values are incompatible. Suggest adding 'noexcept' to the type of '_log_callback'.


Signed-off-by: John <me@joh.ng>
  • Loading branch information
johng authored and pniedzielski committed Nov 26, 2024
1 parent 859b2aa commit c85c24f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blazingmq/_ext.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ cdef _log_callback(const char *name,
int level,
const char *filename,
int line,
const char *msg):
const char *msg) noexcept:
if not LOGGER.isEnabledFor(level):
return
rec = LOGGER.makeRecord(name, level, filename, line, msg, (), None)
Expand Down

0 comments on commit c85c24f

Please sign in to comment.