Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-1820

Deprecation warning on mongoc_uri_get_ssl

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.5.0
    • Build
    • None

    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

      Attachments

        Activity

          People

            clyde.bazile@mongodb.com Clyde Bazile III (Inactive)
            ehadoux Emmanuel Hadoux
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: