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

warning C4351: new behavior: elements of array 'mongo::OID::_data' will be default initialized

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 2.7.8
    • Affects Version/s: None
    • Component/s: Build
    • Labels:
      None
    • Windows
    • Hide

      Build using the VS 2013 Update 2 toolkit.

      Show
      Build using the VS 2013 Update 2 toolkit.

      Since this commit (https://github.com/mongodb/mongo/commit/78c5f9dd5ac65eae251df3e87175a0af076d90d9), Windows builds report the following warning:

      E:\workspace\mongo\src\mongo/bson/oid.h(83) : warning C4351: new behavior: elements of array 'mongo::OID::_data' will be default initialized
      

      This can be fixed by either explicitly zeroing the array, or by disabling the warning through a #pragma (http://msdn.microsoft.com/en-us/library/1ywe7hcy.aspx).

            Assignee:
            adam.midvidy Adam Midvidy
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: