mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Eliminating some compiler warnings.
This commit is contained in:
@ -1001,6 +1001,7 @@ show_system_thread(enum_thread_type thread)
|
|||||||
{
|
{
|
||||||
#define RETURN_NAME_AS_STRING(NAME) case (NAME): return #NAME
|
#define RETURN_NAME_AS_STRING(NAME) case (NAME): return #NAME
|
||||||
switch (thread) {
|
switch (thread) {
|
||||||
|
static char buf[64];
|
||||||
RETURN_NAME_AS_STRING(NON_SYSTEM_THREAD);
|
RETURN_NAME_AS_STRING(NON_SYSTEM_THREAD);
|
||||||
RETURN_NAME_AS_STRING(SYSTEM_THREAD_DELAYED_INSERT);
|
RETURN_NAME_AS_STRING(SYSTEM_THREAD_DELAYED_INSERT);
|
||||||
RETURN_NAME_AS_STRING(SYSTEM_THREAD_SLAVE_IO);
|
RETURN_NAME_AS_STRING(SYSTEM_THREAD_SLAVE_IO);
|
||||||
@ -1008,6 +1009,9 @@ show_system_thread(enum_thread_type thread)
|
|||||||
RETURN_NAME_AS_STRING(SYSTEM_THREAD_NDBCLUSTER_BINLOG);
|
RETURN_NAME_AS_STRING(SYSTEM_THREAD_NDBCLUSTER_BINLOG);
|
||||||
RETURN_NAME_AS_STRING(SYSTEM_THREAD_EVENT_SCHEDULER);
|
RETURN_NAME_AS_STRING(SYSTEM_THREAD_EVENT_SCHEDULER);
|
||||||
RETURN_NAME_AS_STRING(SYSTEM_THREAD_EVENT_WORKER);
|
RETURN_NAME_AS_STRING(SYSTEM_THREAD_EVENT_WORKER);
|
||||||
|
default:
|
||||||
|
sprintf(buf, "<UNKNOWN SYSTEM THREAD: %d>", thread);
|
||||||
|
return buf;
|
||||||
}
|
}
|
||||||
#undef RETURN_NAME_AS_STRING
|
#undef RETURN_NAME_AS_STRING
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user