[CXX-1820] Deprecation warning on mongoc_uri_get_ssl Created: 19/Sep/19  Updated: 28/Oct/23  Resolved: 14/Oct/19

Status: Closed
Project: C++ Driver
Component/s: Build
Affects Version/s: None
Fix Version/s: 3.5.0

Type: Improvement Priority: Major - P3
Reporter: Emmanuel Hadoux Assignee: Clyde Bazile III (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Hello,

when compiling MongoCXX from master, static, using static MongoC release 1.15.1 (I don't know if the static v. dynamic is relevant here) I get the same deprecation warning 10s of times:

In file included from /tmp/mongo-cxx-driver/src/third_party/catch/include/helpers.hpp:19,
                 from /tmp/mongo-cxx-driver/src/mongocxx/test/client_session.cpp:17:
/tmp/mongo-cxx-driver/src/mongocxx/private/libmongoc.hh:58:61: warning: 'bool mongoc_uri_get_ssl(const mongoc_uri_t*)' is deprecated: Use mongoc_uri_get_tls instead [-Wdeprecated-declarations]
     extern MONGOCXX_API mongocxx::test_util::mock<decltype(&mongoc_##name)>& name;
                                                             ^~~~~~~
/tmp/mongo-cxx-driver/src/mongocxx/private/libmongoc_symbols.hh:256:1: note: in expansion of macro 'MONGOCXX_LIBMONGOC_SYMBOL'
 MONGOCXX_LIBMONGOC_SYMBOL(uri_get_ssl)
 ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/deps/include/libmongoc-1.0/mongoc/mongoc-client.h:37,
                 from /tmp/deps/include/libmongoc-1.0/mongoc/mongoc.h:29,
                 from /tmp/deps/include/libmongoc-1.0/mongoc.h:18,
                 from /tmp/mongo-cxx-driver/src/mongocxx/private/libmongoc.hh:27,
                 from /tmp/mongo-cxx-driver/src/third_party/catch/include/helpers.hpp:19,
                 from /tmp/mongo-cxx-driver/src/mongocxx/test/client_session.cpp:17:
/tmp/deps/include/libmongoc-1.0/mongoc/mongoc-uri.h:183:1: note: declared here
 mongoc_uri_get_ssl (const mongoc_uri_t *uri)
 ^~~~~~~~~~~~~~~~~~

The code fix is really simple but I have no idea about the implication of changing one by the other. From I reckon this is just a name change but no sure.

Thanks



 Comments   
Comment by Githook User [ 14/Oct/19 ]

Author:

{'name': 'Clyde Bazile', 'username': 'bazile-clyde', 'email': 'bazileclyde@gmail.com'}

Message: CXX-1820 Deprecation warning on mongoc_uri_get_ssl
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/5021b60cba3a2e01cd8e04f47f2d07da9a4ebaf3

Comment by Clyde Bazile III (Inactive) [ 12/Oct/19 ]

CR: https://mongodbcr.appspot.com/511560003/

Generated at Wed Feb 07 22:04:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.