Sutou Kouhei created ARROW-6128:
-----------------------------------
Summary: [C++] Can't build with g++ 8.3.0 by class-memaccess
warning
Key: ARROW-6128
URL: https://issues.apache.org/jira/browse/ARROW-6128
Project: Apache Arrow
Issue Type: Improvement
Components: C++
Reporter: Sutou Kouhei
Assignee: Sutou Kouhei
This is caused by ARROW-5527.
{noformat}
src/arrow/util/hashing.h:313:11: error: 'void* memset(void*, int, size_t)'
clearing an object of non-trivial type 'struct
arrow::internal::HashTable<arrow::internal::ScalarMemoTable<nonstd::sv_lite::basic_string_view<char>,
arrow::internal::HashTable>::Payload>::Entry'; use assignment or
value-initialization instead [-Werror=class-memaccess]
memset(entries_, 0, capacity * sizeof(Entry));
~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/arrow/util/hashing.h:197:10: note: 'struct
arrow::internal::HashTable<arrow::internal::ScalarMemoTable<nonstd::sv_lite::basic_string_view<char>,
arrow::internal::HashTable>::Payload>::Entry' declared here
struct Entry {
^~~~~
{noformat}
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)