diff options
author | unknown <jani@a88-113-38-195.elisa-laajakaista.fi> | 2007-02-27 11:27:04 +0200 |
---|---|---|
committer | unknown <jani@a88-113-38-195.elisa-laajakaista.fi> | 2007-02-27 11:27:04 +0200 |
commit | 175507b766c471d7545165857debc0cd55d04422 (patch) | |
tree | 6a3fee1594ffd4bdb937f5f56c08a0b76745ae34 /sql/rpl_injector.h | |
parent | 1eb71c68cb1b2f335a8e6b393cdb3e724ea65a0a (diff) | |
download | mariadb-git-175507b766c471d7545165857debc0cd55d04422.tar.gz |
Fixes for compiler warnings.
include/my_dbug.h:
Added macro for fixing compiler warnings.
sql/field.cc:
Fixed compiler warnings.
sql/ha_ndbcluster.cc:
Fixed compiler warnings.
sql/ha_ndbcluster_binlog.cc:
Fixed compiler warnings.
Changed some tabs into spaces.
sql/rpl_injector.h:
Fixed compiler warnings.
sql/sql_binlog.cc:
Fixed compiler warnings.
sql/sql_repl.cc:
Fixed compiler warnings.
sql/sql_table.cc:
Fixed compiler warnings.
storage/myisammrg/ha_myisammrg.cc:
Fixed compiler warnings.
strings/ctype-ucs2.c:
Fixed compiler warnings.
strings/ctype-utf8.c:
Fixed compiler warnings.
support-files/compiler_warnings.supp:
Added suppressed warnings.
Diffstat (limited to 'sql/rpl_injector.h')
-rw-r--r-- | sql/rpl_injector.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/rpl_injector.h b/sql/rpl_injector.h index 8b08c0672c9..61c2e0ecebc 100644 --- a/sql/rpl_injector.h +++ b/sql/rpl_injector.h @@ -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) |