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

deprecate MONGO_COMPILER_VARIABLE_UNUSED in favor of C++ 17 attributes maybe_unused

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 5.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • Execution Team 2021-05-17
    • 1
    • None
    • 0
    • 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@mongodb.com Benety Goh
            Reporter:
            benety.goh@mongodb.com Benety Goh
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: