[SERVER-15304] Clang 3.5 reports error: "error: destination for this 'memset' call is a pointer to class containing a dynamic class 'S2Cell'; vtable pointer will be overwritten" Created: 18/Sep/14  Updated: 18/Sep/14  Resolved: 18/Sep/14

Status: Closed
Project: Core Server
Component/s: Geo
Affects Version/s: 2.7.6
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Tyler Brock Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux (Clang 3.5)


Issue Links:
Duplicate
is duplicated by SERVER-15184 Clang 3.5 reports error: memset overw... Closed
Operating System: ALL
Participants:

 Description   

src/third_party/s2/s2regioncoverer.cc:116:10: error: destination for this 'memset' call is a pointer to class containing a dynamic class 'S2Cell'; vtable pointer will be overwritten
      [-Werror,-Wdynamic-class-memaccess]
  memset(candidate, 0, size);
  ~~~~~~ ^
src/third_party/s2/s2regioncoverer.cc:116:10: note: explicitly cast the pointer to silence this warning
  memset(candidate, 0, size);
         ^
         (void*)


Generated at Thu Feb 08 03:37:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.