mirror of
https://github.com/open62541/open62541.git
synced 2025-06-03 04:00:21 +00:00
fix(plugin): Declare log constants static
The constant string arrays logLevelNames and logCategoryNames are not exported neither in header include nor in dynamic library. But they appear in static libopen62541.a library and my create conflicts. Declare these symbols static to keep them local in ua_log_stdout.c .
This commit is contained in:
parent
af3a2c3740
commit
df733d0f1d
@ -31,11 +31,13 @@
|
||||
# define ANSI_COLOR_RESET ""
|
||||
#endif
|
||||
|
||||
static
|
||||
const char *logLevelNames[6] = {"trace", "debug",
|
||||
ANSI_COLOR_GREEN "info",
|
||||
ANSI_COLOR_YELLOW "warn",
|
||||
ANSI_COLOR_RED "error",
|
||||
ANSI_COLOR_MAGENTA "fatal"};
|
||||
static
|
||||
const char *logCategoryNames[7] = {"network", "channel", "session", "server",
|
||||
"client", "userland", "securitypolicy"};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user