#At file:///home/bzr/mkindahl/fix-5.1-rpl/
2661 Mats Kindahl 2008-08-25
Eliminating some compiler warnings.
modified:
sql/sql_class.h
per-file messages:
sql/sql_class.h
Adding default return clause.
=== modified file 'sql/sql_class.h'
--- a/sql/sql_class.h 2008-08-22 10:40:21 +0000
+++ b/sql/sql_class.h 2008-08-25 12:23:49 +0000
@@ -1001,6 +1001,7 @@ show_system_thread(enum_thread_type thre
{
#define RETURN_NAME_AS_STRING(NAME) case (NAME): return #NAME
switch (thread) {
+ static char buf[64];
RETURN_NAME_AS_STRING(NON_SYSTEM_THREAD);
RETURN_NAME_AS_STRING(SYSTEM_THREAD_DELAYED_INSERT);
RETURN_NAME_AS_STRING(SYSTEM_THREAD_SLAVE_IO);
@@ -1008,6 +1009,9 @@ show_system_thread(enum_thread_type thre
RETURN_NAME_AS_STRING(SYSTEM_THREAD_NDBCLUSTER_BINLOG);
RETURN_NAME_AS_STRING(SYSTEM_THREAD_EVENT_SCHEDULER);
RETURN_NAME_AS_STRING(SYSTEM_THREAD_EVENT_WORKER);
+ default:
+ sprintf(buf, "<UNKNOWN SYSTEM THREAD: %d>", thread);
+ return buf;
}
#undef RETURN_NAME_AS_STRING
}
| Thread |
|---|
| • bzr commit into mysql-5.1 branch (mats:2661) | Mats Kindahl | 25 Aug |