Commit 7a4afad9 authored by Sergei Golubchik's avatar Sergei Golubchik

compilation fix

include/my_valgrind.h:88:112: error: ‘void* memset(void*, int, size_t)’ writing to an object of non-trivial type ‘key_map’ {aka ‘class Bitmap<64>’}; use assignment instead [-Werror=class-memaccess]

in this case it's safe, Bitmap<> is trivial enough
parent 6cee9b19
......@@ -9932,7 +9932,7 @@ bool TABLE::export_structure(THD *thd, Row_definition_list *defs)
void TABLE::initialize_opt_range_structures()
{
TRASH_ALLOC(&opt_range_keys, sizeof(opt_range_keys));
TRASH_ALLOC((void*)&opt_range_keys, sizeof(opt_range_keys));
TRASH_ALLOC(opt_range, s->keys * sizeof(*opt_range));
TRASH_ALLOC(const_key_parts, s->keys * sizeof(*const_key_parts));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment