Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-54600

enterprise: mark some classes final to silence xcode12 builds

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.9.0
    • None
    • Internal Code
    • None
    • Fully Compatible
    • ALL
    • Service Arch 2021-02-22

    Description

      XCode12 can't build enterprise because it emits a warning about a number of classes in enterprise that have final destructors but are not themselves final classes.

       src/mongo/db/modules/enterprise/src/ldap/connections/openldap_connection.h:23:27: error: class with destructor marked 'final' cannot be inherited from [-Werror,-Wfinal-dtor-non-final-class]
       ~OpenLDAPConnection() final;
       ^
      src/mongo/db/modules/enterprise/src/ldap/connections/openldap_connection.h:20:7: note: mark 'mongo::OpenLDAPConnection' as 'final' to silence this warning
      class OpenLDAPConnection : public LDAPConnection {
       ^
      1 error generated.
      

      Attachments

        Activity

          People

            billy.donahue@mongodb.com Billy Donahue
            billy.donahue@mongodb.com Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: