[ https://issues.apache.org/jira/browse/QPID-8200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16494305#comment-16494305 ]
Chris Richardson commented on QPID-8200: ---------------------------------------- I've also seen this problem on recent Gentoo versions due to the upgrade to gcc 8.x. Unfortunately I missed it in my previous round of gcc 8 fixes because I forgot to include the optional linear store component :{ IIRC a fix is also required for the legacystore component - perhaps these could be fixed under the same issue since I think the fixes will be very similar. > [linearstore] Compile error when compiling on Fedora 28 > ------------------------------------------------------- > > Key: QPID-8200 > URL: https://issues.apache.org/jira/browse/QPID-8200 > Project: Qpid > Issue Type: Bug > Components: C++ Broker > Reporter: Kim van der Riet > Assignee: Kim van der Riet > Priority: Major > > 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: > {noformat} > 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{noformat} > -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org