summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2020-07-03 15:01:21 +0200
committerSergei Golubchik <serg@mariadb.org>2020-07-03 15:01:21 +0200
commit7a4afad969e5cb903cdf82386398a75710f5ed80 (patch)
treed60c5bf8f65b95ebd0f11b499b53f6a6cbd5f8f4
parent6cee9b1953b5c6c7fa8bf12a99f24a6927aa06e0 (diff)
downloadmariadb-git-7a4afad969e5cb903cdf82386398a75710f5ed80.tar.gz
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
-rw-r--r--sql/table.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/table.cc b/sql/table.cc
index 124694de621..9e7592e4b97 100644
--- a/sql/table.cc
+++ b/sql/table.cc
@@ -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));
}