Skip to content

Commit ba5bc90

Browse files
Steinar H. Gundersondahlerlend
authored andcommitted
Bug #31355547: RUN CLANG-TIDY MODERNIZE-USE-OVERRIDE OVER THE CODE BASE
Post-push fix: Fix some Clang warnings in InnoDB. Change-Id: I89d9d63ea0ef61dbdbecd6aa5c7290677cc6adee
1 parent 487b8f6 commit ba5bc90

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

storage/innobase/include/sync0types.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@ struct btrsea_sync_check : public sync_check_functor_t {
10661066
: m_result(), m_has_search_latch(has_search_latch) {}
10671067

10681068
/** Destructor */
1069-
virtual ~btrsea_sync_check() {}
1069+
~btrsea_sync_check() override {}
10701070

10711071
/** Called for every latch owned by the calling thread.
10721072
@param[in] level Level of the existing latch
@@ -1129,7 +1129,7 @@ struct dict_sync_check : public sync_check_functor_t {
11291129
: m_result(), m_dict_mutex_allowed(dict_mutex_allowed) {}
11301130

11311131
/** Destructor */
1132-
virtual ~dict_sync_check() {}
1132+
~dict_sync_check() override {}
11331133

11341134
/** Check the latching constraints
11351135
@param[in] level The level held by the thread */

storage/innobase/row/row0pread.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,8 @@ Parallel_reader::Scan_ctx::create_persistent_cursor(
472472
}
473473

474474
bool Parallel_reader::Ctx::move_to_next_node(PCursor *pcursor, mtr_t *mtr) {
475-
page_cur_t *cur = m_range.first->m_pcur->get_page_cur();
475+
page_cur_t *cur MY_ATTRIBUTE((unused)) =
476+
m_range.first->m_pcur->get_page_cur();
476477

477478
if (m_scan_ctx->m_config.m_read_ahead) {
478479
page_no_t next_page_no = btr_page_get_next(page_cur_get_page(cur), mtr);

0 commit comments

Comments
 (0)