diff options
author | Michael Widenius <monty@askmonty.org> | 2014-06-04 13:23:00 +0300 |
---|---|---|
committer | Michael Widenius <monty@askmonty.org> | 2014-06-04 13:23:00 +0300 |
commit | 414e8388bf8925ba128e10adc0086589f9f36016 (patch) | |
tree | cafea70e278afd8dad82a32f218da712748cebd7 /sql/rpl_gtid.cc | |
parent | 113333d44725fe35a5eb52c7df58140e1cce45f8 (diff) | |
download | mariadb-git-414e8388bf8925ba128e10adc0086589f9f36016.tar.gz |
Fixed compiler warnings
mysys/psi_noop.c:
Fixed wrong prototype
sql/rpl_gtid.cc:
Added #ifndef to hide not used variable
storage/connect/connect.cc:
Added volatile to avoid compiler warning in gcc 4.8.1
storage/connect/filamvct.cpp:
Added volatile to avoid compiler warning in gcc 4.8.1
storage/maria/ma_checkpoint.c:
Removed cast to avoid compiler warning
storage/myisam/mi_delete_table.c:
Added attribute to avoid compiler warning
storage/tokudb/ha_tokudb.cc:
Use LINT_INIT_STRUCT to avoid compiler warnings
storage/tokudb/hatoku_hton.cc:
Use LINT_INIT_STRUCT to avoid compiler warnings
storage/tokudb/tokudb_card.h:
Use LINT_INIT_STRUCT to avoid compiler warnings
storage/tokudb/tokudb_status.h:
Use LINT_INIT_STRUCT to avoid compiler warnings
Diffstat (limited to 'sql/rpl_gtid.cc')
-rw-r--r-- | sql/rpl_gtid.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/rpl_gtid.cc b/sql/rpl_gtid.cc index 17c3b15c902..105bdad6f97 100644 --- a/sql/rpl_gtid.cc +++ b/sql/rpl_gtid.cc @@ -326,7 +326,9 @@ rpl_slave_state::update(uint32 domain_id, uint32 server_id, uint64 sub_id, { if (rgi->gtid_ignore_duplicate_state==rpl_group_info::GTID_DUPLICATE_OWNER) { +#ifndef DBUG_OFF Relay_log_info *rli= rgi->rli; +#endif uint32 count= elem->owner_count; DBUG_ASSERT(count > 0); DBUG_ASSERT(elem->owner_rli == rli); |