Skip to content

Commit

Permalink
Fix compilation 2 (GCC 9)
Browse files Browse the repository at this point in the history
Fixed warning: -Woverloaded-virtual for GCC 9 (Clang treats it differently)

Caused by c9cba59
  • Loading branch information
midenok committed Oct 10, 2019
1 parent 3c78d1b commit 545c545
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sql/ha_partition.h
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,11 @@ class ha_partition :public handler
MY_BITMAP m_locked_partitions;
/** Stores shared auto_increment etc. */
Partition_share *part_share;
/** Fix spurious -Werror=overloaded-virtual in GCC 9 */
virtual void restore_auto_increment(ulonglong prev_insert_id)
{
handler::restore_auto_increment(prev_insert_id);
}
/** Store and restore next_auto_inc_val over duplicate key errors. */
virtual void store_auto_increment()
{
Expand Down
5 changes: 5 additions & 0 deletions storage/mroonga/ha_mroonga.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,11 @@ class ha_mroonga: public handler
void set_next_insert_id(ulonglong id);
void get_auto_increment(ulonglong offset, ulonglong increment, ulonglong nb_desired_values,
ulonglong *first_value, ulonglong *nb_reserved_values) mrn_override;
/** Fix spurious -Werror=overloaded-virtual in GCC 9 */
void restore_auto_increment() mrn_override
{
handler::restore_auto_increment();
}
void restore_auto_increment(ulonglong prev_insert_id) mrn_override;
void release_auto_increment() mrn_override;
int check_for_upgrade(HA_CHECK_OPT *check_opt) mrn_override;
Expand Down

0 comments on commit 545c545

Please sign in to comment.