From 545c5452063ec9fc8a2f770512002f6c67c96770 Mon Sep 17 00:00:00 2001 From: Aleksey Midenkov Date: Thu, 10 Oct 2019 13:35:32 +0300 Subject: Fix compilation 2 (GCC 9) Fixed warning: -Woverloaded-virtual for GCC 9 (Clang treats it differently) Caused by c9cba59749e1b5a39a9e3a0a5b8bd762507245f9 --- storage/mroonga/ha_mroonga.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'storage') diff --git a/storage/mroonga/ha_mroonga.hpp b/storage/mroonga/ha_mroonga.hpp index f2fb2bfe8e7..e1dbb63178e 100644 --- a/storage/mroonga/ha_mroonga.hpp +++ b/storage/mroonga/ha_mroonga.hpp @@ -571,6 +571,11 @@ public: 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; -- cgit v1.2.1