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

clang 3.6.0 warns about overriding without using the override keyword, this prevents compilation

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.1.3
    • Affects Version/s: 3.1.1
    • Component/s: Build
    • None
    • Fully Compatible
    • ALL
    • Platform 3 05/15/15

      sample output:

      src/mongo/db/auth/authz_manager_external_state_mock.h:64:24: warning: 'findOne' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
              virtual Status findOne(OperationContext* txn,
                             ^
      src/mongo/db/auth/authz_manager_external_state.h:166:24: note: overridden virtual function is here
              virtual Status findOne(OperationContext* txn,
                             ^
      In file included from src/mongo/db/auth/sasl_authentication_session.cpp:43:
      src/mongo/db/auth/authz_manager_external_state_mock.h:69:24: warning: 'query' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
              virtual Status query(OperationContext* txn,
                             ^
      src/mongo/db/auth/authz_manager_external_state.h:175:24: note: overridden virtual function is here
              virtual Status query(OperationContext* txn,
                             ^
      

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            matt.dannenberg Matt Dannenberg
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: