Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-15306

Clang 3.5 reports: "warning: 'this' pointer cannot be null in well-defined C++ code" in V8

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.7.6
    • Component/s: JavaScript
    • None
    • Environment:
      Linux (Clang 3.5)
    • ALL
    • Platform 8 08/28/15

      Found in both versions of V8 in various places:

      This ticket is to track the error in the third party code, there is a similar ticket (SERVER-15182) to track it in our code:

      src/third_party/v8-3.25/src/spaces.h:961:9: warning: 'this' pointer cannot be null in well-defined C++ code; comparison may be assumed to always evaluate to false [-Wtautological-undefined-compare]
          if (this == NULL || code_range_ == NULL) return false;
              ^~~~    ~~~~
      

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            tyler@10gen.com Tyler Brock
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: