1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

post-merge: gcc 8 warnings

note: Inherit String from Sql_alloc,
to get operators new and new[] in sync

in rocksdb gcc was complaining that non-lvalue was cast to const.
This commit is contained in:
Sergei Golubchik
2019-03-15 15:03:26 +01:00
parent 0508d327ae
commit f1134d5676
13 changed files with 22 additions and 58 deletions

View File

@ -2046,9 +2046,9 @@ public:
static void *operator new(size_t size, THD *thd) throw();
static void operator delete(void *ptr, size_t size) {TRASH_FREE(ptr, size);}
Virtual_tmp_table(THD *thd)
Virtual_tmp_table(THD *thd) : m_alloced_field_count(0)
{
bzero(this, sizeof(*this));
reset();
temp_pool_slot= MY_BIT_NONE;
in_use= thd;
}