[CDRIVER-1935] Compiler warning on mingw-w64 Created: 23/Nov/16  Updated: 30/Nov/16  Resolved: 30/Nov/16

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

Type: Bug Priority: Minor - P4
Reporter: Jeroen Ooms [X] Assignee: Unassigned
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-959 mingw build & test in Evergreen Closed

 Description   

Compiler warning with 1.5.0rc6 on mingw-w64:

mongoc/mongoc-handshake.c: In function '_get_os_version':
mongoc/mongoc-handshake.c:209:22: warning: format '%d' expects argument of type 'int', but argument 4 has type 'DWORD' [-Wformat]
mongoc/mongoc-handshake.c:209:22: warning: format '%d' expects argument of type 'int', but argument 5 has type 'DWORD' [-Wformat]
mongoc/mongoc-handshake.c:209:22: warning: format '%d' expects argument of type 'int', but argument 6 has type 'DWORD' [-Wformat]
mongoc/mongoc-handshake.c:212:7: warning: format '%d' expects argument of type 'int', but argument 4 has type 'DWORD' [-Wformat]



 Comments   
Comment by Githook User [ 30/Nov/16 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@mongodb.com'}

Message: Merge pull request #407 from jeroenooms/windows

DWORD is unsigned long, fixes CDRIVER-1935
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/429317b2fab6dc904bf77da7acec511222ef4de0

Comment by Githook User [ 30/Nov/16 ]

Author:

{u'username': u'jeroenooms', u'name': u'Jeroen Ooms', u'email': u'jeroenooms@gmail.com'}

Message: DWORD is unsigned long, fixes CDRIVER-1935
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/82fcf3c534da444125df0d7654714d72e6401fee

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