Skip to content

Commit

Permalink
removed some compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
montywi authored and spetrunia committed Jun 7, 2022
1 parent 9e6fd29 commit e240e8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sql/partition_info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion sql/slave.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e240e8d

Please sign in to comment.