From a76038f81bb3966d9373117576c0e5d09c8c2e73 Mon Sep 17 00:00:00 2001 From: John Date: Tue, 26 Nov 2024 16:04:10 +0000 Subject: [PATCH] Fix SDK build for macos 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 --- src/blazingmq/_ext.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blazingmq/_ext.pyx b/src/blazingmq/_ext.pyx index d10ea5a..f706cb8 100644 --- a/src/blazingmq/_ext.pyx +++ b/src/blazingmq/_ext.pyx @@ -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)