Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARROW-4455: [Plasma] Suppress class-memaccess warnings
cpp/src/plasma/store.cc: In member function 'arrow::Status plasma::PlasmaStore::ProcessMessage(plasma::Client*)': cpp/src/plasma/store.cc:767:36: error: 'void* memset(void*, int, size_t)' clearing an object of type 'struct plasma::PlasmaObject' with no trivial copy-assignment; use assignment or value-initialization instead [-Werror=class-memaccess] memset(&object, 0, sizeof(object)); ^ In file included from cpp/src/plasma/eviction_policy.h:27, from cpp/src/plasma/store.h:30, from cpp/src/plasma/store.cc:29: cpp/src/plasma/plasma.h:75:8: note: 'struct plasma::PlasmaObject' declared here struct PlasmaObject { ^~~~~~~~~~~~ cpp/src/plasma/test/serialization_tests.cc: In function 'plasma::PlasmaObject plasma::random_plasma_object()': cpp/src/plasma/test/serialization_tests.cc:68:36: error: 'void* memset(void*, int, size_t)' clearing an object of type 'struct plasma::PlasmaObject' with no trivial copy-assignment; use assignment or value-initialization instead [-Werror=class-memaccess] memset(&object, 0, sizeof(object)); ^ In file included from cpp/src/plasma/test/serialization_tests.cc:25: cpp/src/plasma/plasma.h:75:8: note: 'struct plasma::PlasmaObject' declared here struct PlasmaObject { ^~~~~~~~~~~~ cpp/src/plasma/test/serialization_tests.cc: In member function 'virtual void plasma::PlasmaSerialization_CreateReply_Test::TestBody()': cpp/src/plasma/test/serialization_tests.cc:110:38: error: 'void* memset(void*, int, size_t)' clearing an object of type 'struct plasma::PlasmaObject' with no trivial copy-assignment; use assignment or value-initialization instead [-Werror=class-memaccess] memset(&object2, 0, sizeof(object2)); ^ In file included from cpp/src/plasma/test/serialization_tests.cc:25: cpp/src/plasma/plasma.h:75:8: note: 'struct plasma::PlasmaObject' declared here struct PlasmaObject { ^~~~~~~~~~~~ Author: Kouhei Sutou <[email protected]> Closes #3543 from kou/plasma-suppress-class-memaccess-warning and squashes the following commits: 34ce66c <Kouhei Sutou> Suppress class-memaccess warnings
- Loading branch information