Skip to content

Commit

Permalink
Workaround const logger warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfr committed Nov 10, 2023
1 parent 3a4925a commit aa5754d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backends/open62541/src/import.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

This comment has been minimized.

Copy link
@paddor

paddor Jan 8, 2024

Collaborator

This does not work anymore.

[ 80%] Building C object CMakeFiles/NodesetLoader.dir/backends/open62541/src/ServerContext.c.o
[ 85%] Building C object CMakeFiles/NodesetLoader.dir/backends/open62541/src/Value.c.o
[ 90%] Building C object CMakeFiles/NodesetLoader.dir/backends/open62541/src/RefServiceImpl.c.o
[ 95%] Building C object CMakeFiles/NodesetLoader.dir/backends/open62541/src/import.c.o
/home/user/dev/oss/open62541-ruby/ext/open62541/deps/nodesetLoader/backends/open62541/src/import.c: In function ‘NodesetLoader_loadFile’:
/home/user/dev/oss/open62541-ruby/ext/open62541/deps/nodesetLoader/backends/open62541/src/import.c:686:47: error: ‘UA_ServerConfig’ has no member named ‘logging’
  686 |     logger->context = (void*)(uintptr_t)config->logging;
      |                                               ^~
logger->log = &logToOpen;
NL_ReferenceService *refService = RefServiceImpl_new(server);

Expand Down

0 comments on commit aa5754d

Please sign in to comment.