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

XMLWordPrintableJSON

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

      Build using the VS 2013 Update 2 toolkit.

      Show
      Build using the VS 2013 Update 2 toolkit.
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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 (Inactive)
            Reporter:
            Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: