From aa5754d167b44c3da2fd51a87f3eaa413fff9cb3 Mon Sep 17 00:00:00 2001 From: Julius Pfrommer Date: Fri, 10 Nov 2023 03:20:02 +0100 Subject: [PATCH] Workaround const logger warning --- backends/open62541/src/import.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/open62541/src/import.c b/backends/open62541/src/import.c index e837296..77abeb6 100644 --- a/backends/open62541/src/import.c +++ b/backends/open62541/src/import.c @@ -595,7 +595,7 @@ bool NodesetLoader_loadFile(struct UA_Server *server, const char *path, UA_ServerConfig *config = UA_Server_getConfig(server); NodesetLoader_Logger *logger = (NodesetLoader_Logger *)calloc(1, sizeof(NodesetLoader_Logger)); - logger->context = config->logging; + logger->context = (void*)(uintptr_t)config->logging; logger->log = &logToOpen; NL_ReferenceService *refService = RefServiceImpl_new(server);