[SERVER-15358] warning C4351: new behavior: elements of array 'mongo::OID::_data' will be default initialized Created: 23/Sep/14  Updated: 11/Jul/16  Resolved: 26/Sep/14

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: None
Fix Version/s: 2.7.8

Type: Bug Priority: Trivial - P5
Reporter: Kaloian Manassiev Assignee: Adam Midvidy
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to CXX-353 Suppress warning regarding default in... Closed
Operating System: Windows
Steps To Reproduce:

Build using the VS 2013 Update 2 toolkit.

Participants:

 Description   

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).



 Comments   
Comment by Githook User [ 25/Sep/14 ]

Author:

{u'username': u'amidvidy', u'name': u'Adam Midvidy', u'email': u'amidvidy@gmail.com'}

Message: SERVER-15358 suppress spurious MSVC warning regarding default initialized array members

Closes #792

Signed-off-by: Benety Goh <benety@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/a658204bcdac48548821db4bb4638511bffaa670

Generated at Thu Feb 08 03:37:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.