diff options
author | unknown <monty@mysql.com/narttu.mysql.fi> | 2007-02-27 19:31:49 +0200 |
---|---|---|
committer | unknown <monty@mysql.com/narttu.mysql.fi> | 2007-02-27 19:31:49 +0200 |
commit | 3956f5911e86bb9610f502832f5103530053e7ec (patch) | |
tree | d28a6d1f930596f828c5f26824d51b1c917abe91 /sql/ha_ndbcluster_binlog.cc | |
parent | 175507b766c471d7545165857debc0cd55d04422 (diff) | |
download | mariadb-git-3956f5911e86bb9610f502832f5103530053e7ec.tar.gz |
Remove compiler warnings
mysql-test/mysql-test-run.pl:
Fix warning when using --extern
sql/field.cc:
Fix wrong fix
sql/ha_ndbcluster.cc:
Better fixes to remove compiler warnings
sql/ha_ndbcluster_binlog.cc:
Better fixes to remove compiler warnings
sql/log.cc:
Fix compiler warnings
sql/sql_parse.cc:
Indentation fix
sql/sql_table.cc:
Indentation fixes
storage/myisammrg/ha_myisammrg.cc:
Fix compiler warnings
storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp:
Fix compiler warnings
support-files/compiler_warnings.supp:
Suppress all 'safe' warnings, as detected by win64
win/README:
Fixed typo
Diffstat (limited to 'sql/ha_ndbcluster_binlog.cc')
-rw-r--r-- | sql/ha_ndbcluster_binlog.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sql/ha_ndbcluster_binlog.cc b/sql/ha_ndbcluster_binlog.cc index dc2bea0c6f4..73363328078 100644 --- a/sql/ha_ndbcluster_binlog.cc +++ b/sql/ha_ndbcluster_binlog.cc @@ -3857,7 +3857,9 @@ restart: continue; } TABLE *table= share->table; - IF_DBUG(const LEX_STRING &name= table->s->table_name); +#ifndef DBUG_OFF + const LEX_STRING &name= table->s->table_name; +#endif if ((event_types & (NdbDictionary::Event::TE_INSERT | NdbDictionary::Event::TE_UPDATE | NdbDictionary::Event::TE_DELETE)) == 0) @@ -3884,8 +3886,10 @@ restart: { TABLE *table= ndb_apply_status_share->table; - IF_DBUG(const LEX_STRING& name= table->s->table_name); +#ifndef DBUG_OFF + const LEX_STRING& name= table->s->table_name; DBUG_PRINT("info", ("use_table: %.*s", name.length, name.str)); +#endif injector::transaction::table tbl(table, TRUE); IF_DBUG(int ret=) trans.use_table(::server_id, tbl); DBUG_ASSERT(ret == 0); |