[CDRIVER-2392] Pedantic warning on Ubuntu 16.04 Created: 20/Nov/17  Updated: 28/Oct/23  Resolved: 20/Nov/17

Status: Closed
Project: C Driver
Component/s: libmongoc
Affects Version/s: 1.8.2
Fix Version/s: 1.9.0

Type: Bug Priority: Minor - P4
Reporter: Jeroen Ooms [X] Assignee: A. Jesse Jiryu Davis
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Ubuntu has another pedantic C99 warning:

mongoc/mongoc-uri.c: In function ‘mongoc_uri_parse_option’:
mongoc/mongoc-uri.c:765:10: warning: ISO C does not support %n$ operand number formats [-Wformat=]
          MONGOC_WARNING ("Deprecated boolean value for \"%1$s\": \"%2$s\", "
          ^
mongoc/mongoc-uri.c:774:10: warning: ISO C does not support %n$ operand number formats [-Wformat=]
          MONGOC_WARNING ("Deprecated boolean value for \"%1$s\": \"%2$s\", "
          ^



 Comments   
Comment by Githook User [ 20/Nov/17 ]

Author:

{'name': 'A. Jesse Jiryu Davis', 'username': 'ajdavis', 'email': 'jesse@mongodb.com'}

Message: CDRIVER-2392 nonstandard printf format
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/b66a2f7caf97f2f128c53a03713d5358e4906dd6

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