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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.2
    • Component/s: None
    • Labels:
      None
    • Operating System:
      ALL

      Description

      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.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: