Uploaded image for project: 'Core Server'
  1. Core Server
  2. 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"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: 2.7.6
    • Fix Version/s: None
    • Component/s: Geo
    • Labels:
      None
    • Environment:
      Linux (Clang 3.5)
    • Operating System:
      ALL

      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*)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              tyler@10gen.com Tyler Brock
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: