Adding return value, which is not used, and wrapped debug function in

DBUG_OFF #ifdefs to eliminate two warnings in replication tree.
parent cf56c586
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
#define FLAGSTR(V,F) ((V)&(F)?#F" ":"") #define FLAGSTR(V,F) ((V)&(F)?#F" ":"")
#ifndef MYSQL_CLIENT #if !defined(MYSQL_CLIENT) && !defined(DBUG_OFF)
static const char *HA_ERR(int i) static const char *HA_ERR(int i)
{ {
switch (i) { switch (i) {
...@@ -90,6 +90,7 @@ static const char *HA_ERR(int i) ...@@ -90,6 +90,7 @@ static const char *HA_ERR(int i)
case HA_ERR_LOGGING_IMPOSSIBLE: return "HA_ERR_LOGGING_IMPOSSIBLE"; case HA_ERR_LOGGING_IMPOSSIBLE: return "HA_ERR_LOGGING_IMPOSSIBLE";
case HA_ERR_CORRUPT_EVENT: return "HA_ERR_CORRUPT_EVENT"; case HA_ERR_CORRUPT_EVENT: return "HA_ERR_CORRUPT_EVENT";
} }
return "<unknown error>";
} }
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment