Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-8200

[linearstore] Compile error when compiling on Fedora 28

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reviewable
    • Major
    • Resolution: Unresolved
    • None
    • None
    • C++ Broker
    • 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

       

      Attachments

        Activity

          People

            kpvdr Kim van der Riet
            kpvdr Kim van der Riet
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: