Commit 3ef01d11 authored by Sergei Golubchik's avatar Sergei Golubchik

compilation failure, gcc 8.3.0

storage/innobase/log/log0recv.cc|1760 col 35 error| 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'struct recv_t' with no trivial copy-assignment [-Werror=class-memaccess]
parent e5fed3b9
......@@ -1757,7 +1757,7 @@ inline void recv_sys_t::add(mlog_id_t type, const page_id_t page_id,
recv_t* recv= new (mem_heap_alloc(heap, sizeof(recv_t) + chunk_len))
recv_t(len, type, lsn, end_lsn);
memcpy(recv + 1, body, chunk_len);
memcpy((void*)(recv + 1), body, chunk_len);
recs.log.append(recv);
if (UNIV_LIKELY(len == chunk_len))
......
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