deprecate MONGO_COMPILER_VARIABLE_UNUSED in favor of C++ 17 attributes maybe_unused

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Trivial - P5
    • 5.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • Execution Team 2021-05-17
    • 1
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We have been using the C++ 17 attribute maybe_unused in the server code base for a while now (earliest detected usage was in SERVER-40312 in 4.2). It may be time to retire the MONGO_COMPILER_VARIABLE_UNUSED macro.

      https://github.com/mongodb/mongo/search?q=maybe_unused&type=Code

      https://github.com/mongodb/mongo/search?q=MONGO_COMPILER_VARIABLE_UNUSED&type=Code

            Assignee:
            Benety Goh
            Reporter:
            Benety Goh
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: