Skip to content

Commit a76038f

Browse files
authored
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 <[email protected]>
1 parent 859b2aa commit a76038f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/blazingmq/_ext.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ cdef _log_callback(const char *name,
5858
int level,
5959
const char *filename,
6060
int line,
61-
const char *msg):
61+
const char *msg) noexcept:
6262
if not LOGGER.isEnabledFor(level):
6363
return
6464
rec = LOGGER.makeRecord(name, level, filename, line, msg, (), None)

0 commit comments

Comments
 (0)