mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
compilation fixes for sys-devel/gcc-11.2.0:11
for example: sql/sql_prepare.cc:5714:63: error: 'static void Ed_result_set::operator delete(void*, MEM_ROOT*)' called on pointer returned from a mismatched allocation function [-Werror=mismatched-new-delete]
This commit is contained in:
@ -39,7 +39,7 @@ class JOIN;
|
||||
its base class.
|
||||
*/
|
||||
|
||||
class Server_side_cursor: protected Query_arena, public Sql_alloc
|
||||
class Server_side_cursor: protected Query_arena
|
||||
{
|
||||
protected:
|
||||
/** Row destination used for fetch */
|
||||
@ -61,6 +61,8 @@ public:
|
||||
}
|
||||
virtual ~Server_side_cursor();
|
||||
|
||||
static void *operator new(size_t size, MEM_ROOT *mem_root)
|
||||
{ return alloc_root(mem_root, size); }
|
||||
static void operator delete(void *ptr, size_t size);
|
||||
static void operator delete(void *, MEM_ROOT *){}
|
||||
};
|
||||
|
Reference in New Issue
Block a user