Details
-
Bug
-
Status: Reviewable
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
When compiling on Fedora 28, a compile warning -Werror=class-memaccess is seen when compiling qpid::linearstore::journal::pmgr , and which was not seen on Fedora 27:
qpid::linearstore::journal::pmgr::initialize(qpid::linearstore::journal::aio_callback*, uint32_t, uint16_t)': /foo/cpp/src/qpid/linearstore/journal/pmgr.cpp:115:68: error: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct qpid::linearstore::journal::pmgr::page_cb'; use assignment instead [-Werror=class-memaccess] std::memset(_page_cb_arr, 0, _cache_num_pages * sizeof(page_cb)); ^ In file included from /foo/cpp/src/qpid/linearstore/journal/pmgr.cpp:22: /foo/cpp/src/qpid/linearstore/journal/pmgr.h:63:12: note: 'struct qpid::linearstore::journal::pmgr::page_cb' declared here struct page_cb ^~~~~~~ cc1plus: all warnings being treated as errors