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

Server fails to build with clang-3.4 due to new warnings triggered by v8 code

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.5.2
    • Affects Version/s: None
    • Component/s: None
    • None
    • ALL

      Attempting to build mongod with clang-3.4 generates a warning which is escalated to an error:

      In file included from src/third_party/v8/src/x64/builtins-x64.cc:28:
      In file included from src/third_party/v8/src/v8.h:56:
      In file included from src/third_party/v8/src/v8utils.h:31:
      src/third_party/v8/src/utils.h:976:20: error: comparison of constant 32 with expression of type 'v8::internal::AstPropertiesFlag' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
          ASSERT(element < static_cast<int>(sizeof(T) * CHAR_BIT));
      

      We should add a -Wno for this warning which isn't terribly interesting.

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

              Created:
              Updated:
              Resolved: