[CDRIVER-1178] Reduce compiler warning flood on Windows Created: 25/Mar/16  Updated: 17/Aug/17  Resolved: 25/Mar/16

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: 1.4.0
Fix Version/s: 1.4.0

Type: Bug Priority: Major - P3
Reporter: Hannes Magnusson Assignee: Hannes Magnusson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to CDRIVER-2245 Macro redefinition of printf integer ... Closed

 Description   

Compiling mongoc on VS Studio 2015 results in 182 compiler warnings.

84 of these warnings can be avoided quite easily by setting _CRT_SECURE_NO_WARNINGS and casting to DWORD in SleepConditionVariableCS

Thats a pretty high gain for trivial changes, allowing at least that much easier spotting of actual problems.



 Comments   
Comment by Githook User [ 25/Mar/16 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: CDRIVER-1178: Reduce Warnings on Windows

182 warnings -> 98 warnings
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/89f82a7b4d768aeefb4d9a2eb93d13e69a297b2d

Generated at Wed Feb 07 21:11:48 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.