Commit e240e8d0 authored by Monty's avatar Monty Committed by Sergei Petrunia

removed some compiler warnings

parent 9e6fd299
......@@ -890,7 +890,7 @@ void partition_info::vers_check_limit(THD *thd)
#ifndef DBUG_OFF
const uint32 sub_factor= num_subparts ? num_subparts : 1;
uint32 part_id= vers_info->hist_part->id * sub_factor;
const uint32 part_id_end= part_id + sub_factor;
const uint32 part_id_end __attribute__((unused)) = part_id + sub_factor;
DBUG_ASSERT(part_id_end <= num_parts * sub_factor);
#endif
......
......@@ -6718,7 +6718,7 @@ static int queue_event(Master_info* mi, const uchar *buf, ulong event_len)
can be satisfied only with the strict mode that ensures
against "genuine" gtid duplicates.
*/
rpl_gtid *gtid_in_slave_state=
rpl_gtid *gtid_in_slave_state __attribute__((unused))=
mi->gtid_current_pos.find(mi->last_queued_gtid.domain_id);
// Slave gtid state must not have updated yet to the last received gtid.
......
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