Skip to content

Commit a806c99

Browse files
committed
Fix for compiling under clang.
1 parent d87979b commit a806c99

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

sql/sp_head.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* -*- C++ -*- */
22
/*
33
Copyright (c) 2002, 2011, Oracle and/or its affiliates.
4-
Copyright (c) 2020, MariaDB
4+
Copyright (c) 2020, 2022, MariaDB
55
66
This program is free software; you can redistribute it and/or modify
77
it under the terms of the GNU General Public License as published by
@@ -1060,7 +1060,7 @@ class sp_lex_cursor: public sp_lex_local, public Query_arena
10601060
~sp_lex_cursor() { free_items(); }
10611061
virtual bool cleanup_stmt(bool /*restore_set_statement_vars*/) override
10621062
{ return false; }
1063-
Query_arena *query_arena() { return this; }
1063+
Query_arena *query_arena() override { return this; }
10641064
bool validate()
10651065
{
10661066
DBUG_ASSERT(sql_command == SQLCOM_SELECT);
@@ -1840,9 +1840,9 @@ class sp_instr_cpush : public sp_instr, public sp_cursor
18401840
virtual ~sp_instr_cpush()
18411841
{}
18421842

1843-
virtual int execute(THD *thd, uint *nextp);
1843+
int execute(THD *thd, uint *nextp) override;
18441844

1845-
virtual void print(String *str);
1845+
void print(String *str) override;
18461846

18471847
/**
18481848
This call is used to cleanup the instruction when a sensitive
@@ -1857,7 +1857,7 @@ class sp_instr_cpush : public sp_instr, public sp_cursor
18571857
uint m_cursor; /**< Frame offset (for debugging) */
18581858

18591859
public:
1860-
virtual PSI_statement_info* get_psi_info() { return & psi_info; }
1860+
PSI_statement_info* get_psi_info() override { return & psi_info; }
18611861
static PSI_statement_info psi_info;
18621862
}; // class sp_instr_cpush : public sp_instr
18631863

sql/sql_prepare.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* Copyright (c) 2002, 2015, Oracle and/or its affiliates.
2-
Copyright (c) 2008, 2021, MariaDB
2+
Copyright (c) 2008, 2022, MariaDB
33
44
This program is free software; you can redistribute it and/or modify
55
it under the terms of the GNU General Public License as published by
@@ -200,8 +200,8 @@ class Prepared_statement: public Statement
200200
Prepared_statement(THD *thd_arg);
201201
virtual ~Prepared_statement();
202202
void setup_set_params();
203-
virtual Query_arena::Type type() const;
204-
virtual bool cleanup_stmt(bool restore_set_statement_vars) override;
203+
Query_arena::Type type() const override;
204+
bool cleanup_stmt(bool restore_set_statement_vars) override;
205205
bool set_name(const LEX_CSTRING *name);
206206
inline void close_cursor() { delete cursor; cursor= 0; }
207207
inline bool is_in_use() { return flags & (uint) IS_IN_USE; }

0 commit comments

Comments
 (0)