You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Kim van der Riet (JIRA)" <ji...@apache.org> on 2018/05/25 17:35:00 UTC

[jira] [Commented] (QPID-8200) [linearstore] Compile error when compiling on Fedora 28

    [ https://issues.apache.org/jira/browse/QPID-8200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16491056#comment-16491056 ] 

Kim van der Riet commented on QPID-8200:
----------------------------------------

This post provides some insight into the {{-Wclass-memaccess}} warning:

[https://gcc.gnu.org/ml/gcc-patches/2017-06/msg01527.html|https://gcc.gnu.org/ml/gcc-patches/2017-06/msg01527.html]

> [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-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org