1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fixes for compiler warnings.

This commit is contained in:
jani@a88-113-38-195.elisa-laajakaista.fi
2007-02-27 11:27:04 +02:00
parent 83a5eac0a4
commit 6163508f85
12 changed files with 117 additions and 81 deletions

View File

@ -284,12 +284,14 @@ public:
*/
int check_state(enum_state const target_state)
{
#ifndef DBUG_OFF
static char const *state_name[] = {
"START_STATE", "TABLE_STATE", "ROW_STATE", "STATE_COUNT"
};
DBUG_ASSERT(0 <= target_state && target_state <= STATE_COUNT);
DBUG_PRINT("info", ("In state %s", state_name[m_state]));
#endif
if (m_state <= target_state && target_state <= m_state + 1 &&
m_state < STATE_COUNT)